Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

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 · 636 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 Sebadamus, 2 days ago
2 66 22 hours ago
Themes & Styling · by martynfoster735, 4 days ago
1 158 3 days ago
Themes & Styling · by Justin Young, 2 weeks ago
1 219 2 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 349 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 704 3 months ago