Replies: 1 comment
-
Thank you for moving this from a bug to a discussion. However, this does not solve my problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem Description
After enabling the version_urls option, I noticed inconsistent behavior when generating image URLs. While the src attribute in the HTML contains the correct URL with the version identifier, the URLs in the srcset attribute are not updated accordingly. This mismatch between src and srcset makes it problematic to use responsive images effectively.
Expected Behavior
All image URLs, including those in the srcset attribute, should include the version identifier when the version_urls option is enabled. This ensures that the cache-busting strategy is applied uniformly across all image sizes.
Actual Behavior
Steps to Reproduce
Enable the version_urls option in the Spatie Media Library configuration.
Use an image with multiple sizes to generate a responsive image tag (img).
Inspect the generated HTML:
Relevant Configuration Details
Code Examples
Beta Was this translation helpful? Give feedback.
All reactions