-
-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom cache set for Images uploaded #502
Comments
Yes we could add this feature, however there’s no guarantee that uploaded files are THAT static as you can update the assets. With that kind of cache date you would need to disable media update and instead always upload new files. As I see it the recommendation is for static assets not accessible for the editors such as logo, font files, stylesheets and so on. However it could be nice to actually mark a media asset as static, this would treat it in a special way and maybe set a longer expiration date on it. Regards |
This feature is still missing, and it seems like Google is penalizing this behaviour. The problem of updates is usually solved like this: You add a version number to the image |
This issue hasn’t been prioritized as you should be able to override the max-age of blob items by using azure cdn in front of it, but we’ll look into it! |
As for versioning images we don’t store versions for media items, but the last modification date could be used the generate a unique hash. |
I'm excited that this feature is being added to version 11. Looking forward to it, thank you! |
Hi would it be possible to have a config setting similar to the page/post to be able to set the CacheControl a max-age for the images uploaded to blob storage?
The recommended amount of seconds set for static images should be 1 year (31536000 seconds)
Thanks
The text was updated successfully, but these errors were encountered: