Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Why the Cache-Control code of Browser Caching is not working for image types?
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-%E2%80%94-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?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×