Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

I can't make a cache compression and expiration work for some .css, .ico, and .js files

theme

Started by Gabriel L S Saraiva 7 years ago · 0 replies · 814 views
7 years ago

My Grav is set up as in the help documentation but also the GTmetrix site reports some css and js without compression and Leverage browser caching is not specified expiration for css and favicon.ico.
I don't know what to do about it I use the gantry framework for frontend.

I read this topic /forum/installation-hosting/how-to-set-cache-control-for-images-t4016 but I don't use NGINX so I didn't try it.

I have tried this on this topic /forum/archive/css-js-minify-not-working-t5186 and it seems to solve the problem of caching expiration, however it did not resolve the compression.

TXT
/assets/b4ccdc47e25cebc0f1a09dfe499d1f7d.css
/user/plugins/gantry5/assets/js/main.js?5dbd0b47 

Apparently looking files are not being compressed, but performance improved after enabling Pipeline.

last edited 11/03/19 by Gabriel L S Saraiva

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 1 month ago
4 559 4 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 871 1 month ago
Themes & Styling · by stuart young, 3 months ago
3 731 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 752 3 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 702 3 months ago