"Serve static assets with an efficient cache policy" - How many days is best practice?

Viewed 2910

On google page speed test, it logically suggests to setup browser caching for static content, like .js .css etc.

"A long cache lifetime can speed up repeat visits to your page."

I am setting this up, but for how long? There must be best practice on this, as I don't know if 7 days or 77 days is a good idea. Perhaps subjective, site dependent and all that usual stuff, so is the longer the better? A year perhaps?

I have cache busting enabled, so future updates aren't an issue for my website.

0 Answers
Related