Specify a cache validator

Hi

I run some test on GTmetrix for my website and receive few clues to improve web performance.
One of this is:

“Specify a cache validator” The following resources are missing a cache validator. Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation for the following resources:

Can I set this in Cloudflare configuration or in another way in my website?
I add this below code for my htaccess but no results :frowning:

Header set Cache-Control "max-age=2592000, public"

<filesMatch “\.(css)$”>
Header set Cache-Control “max-age=2592000, public”

<filesMatch “\.(js)$”>
Header set Cache-Control “max-age=216000, private”

<filesMatch “\.(xml|txt)$”>
Header set Cache-Control “max-age=216000, public, must-revalidate”

<filesMatch “\.(html|htm|php)$”>
Header set Cache-Control “max-age=1, private, must-revalidate”

How to fix it?
I very appreciated for any clue for this…Thank you

Regards
Jenny

This topic was automatically closed after 30 days. New replies are no longer allowed.