Report this

What is the reason for this report?

Why the Cache-Control code of Browser Caching is not working for image types?

Posted on August 12, 2020

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.