Hello @comunadv,
I hope you’re doing well!
This is related to Browser Caching. Please go to the Hummingbird > Caching > Browser Caching and set the browser caching to no less than a month to one year.
Please see attached screenshot:
https://take.ms/psg4t
Let us know how it went!
Cheers,
Nastia
Hi! Thanks for your reply.
I’ve made the changes you told me, but it still not caching those files.
And all the image files still says 24 days, but the js and css files says 60 days.
You can see here: https://monosnap.com/file/QICAv2Y5JDbi911wBjnqeuyGaGhPFH
But all those 14 files are still giving me the request header Cache-Control: no-cache
I don’t know why in the Browser Caching settings it says 2 months for all the files: https://monosnap.com/file/rHMOYAIKY3Bk6BBcSIRbuHuzjeJDba
Thanks!
Hello @comunadv
I hope you’re doing well!
Enabling CDN on your site will improve the score for these static assets. I see the Browser cache of two months has been applied to these files. Looks like the issue is that the Headers do not have an efficient cache policy.
Please edit your .htaccess file and add at the very top these lines
# Cache Control and Enable CORS
<FilesMatch "\.(js|css|jpg|gif|png|pdf|swf|svg|svgz|ico|ttf|ttc|otf|eot|woff|woff2|webp)$">
<IfModule mod_headers.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
Header set Cache-Control "public, immutable, max-age=2628000, s-maxage=2628000"
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
This should help to improve the score.
Let us know how it went!
Kind regards,
Nastia
Hello @comunadv
I hope you are doing well!
We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.
Kind regards,
Nastia