By Nusrat
As I was following through the tutorial on the Browser Caching with Nginx’s header Module on Ubuntu 16.04 https://www.digitalocean.com/community/tutorials/how-to-implement-browser-caching-with-nginx-s-header-module-on-ubuntu-16-04#step-4-—-testing-browser-caching,
it is successfully working for all file types except for the image types.
The Gtmetrix Speed tester is recommending to leverage the browser cache for images and showing expiration not specified for images.
How can I fix the issue to leverage browser caching for images?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi there @Nusrat,
If you do a curl -I http://localhost/test.jpg what are the headers that you get back?
Also is Gtmetrix reporting specific image types that are problematic or is it for all images on your site?
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.