Leverage browser caching for logo


(Drew Friestedt) #1

I’m running a pagespeed test on my site, discuss.endurancelab.fit. One result indicates the logo is not cached. Is there something I can do to cache the logo, or should I forget this?

https://s3.us-east-2.amazonaws.com/…lab-logo-horizontal-150dpi-optimized.png (expiration not specified)

Thx


#2

Go to your S3 bucket. Find the file. Go to properties. Add metadata for ‘cache control’ or ‘expires’.


(Drew Friestedt) #3

That worked perfectly.

For future readers I used cache-control and max-age=86400

You can read up here:


(Régis Hanol) #4