Control over browser cache expiration
-
Firstly, thank you Frank for all your hard work on this plugin. I’m not trying to curry your favour by saying it’s better than paid alternatives I’ve used, that is simply the truth!
I’ve set the plugin up to cache YT thumbnails locally for better performance. For browser cache expiration I have a default setting of 31557600 seconds (about a year) for images. In spite of this, the thumbnails generated by your plugin have an expiration of 1 week, even though they have a content type of image/jpeg.
Here are the browser cache settings I’m using (as provided by LiteSpeed):
<IfModule mod_expires.c> ExpiresActive on ExpiresByType image/jpg A31557600 ExpiresByType image/jpeg A31557600 ExpiresByType image/png A31557600 ExpiresByType image/gif A31557600 ExpiresByType image/webp A31557600 </IfModule>
The images are served through CloudFlare, but I’ve set that to respect existing headers sent by the origin. All other images on the site have the above expiration times.
Is your plugin setting its own cache expiration on the thumbnails it generates? If so, is there any way to override this behaviour – or – is there a good reason not to?
Thanks for your help!
- The topic ‘Control over browser cache expiration’ is closed to new replies.