Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello
I've a problem with the cache expire indicate in the headers of files generate with advagg.
The cache expires is only of 15mn.
Accept-Ranges bytes
Cache-Control max-age=900, no-transform, public, immutable
Content-Encoding gzip
Content-Length 17076
Content-Type text/css
Date Tue, 25 Apr 2017 13:04:59 GMT
Expires Tue, 25 Apr 2017 13:19:59 GMT
Last-Modified Mon, 24 Apr 2017 15:08:12 GMT
Server Apache
Set-Cookie xxlplan=R908334566; path=/; expires=Tue, 25-Apr-2017 14:04:18 GMT
Vary Accept-Encoding
X-Content-Type-Options nosniff
X-XSS-Protection 1; mode=block
How to increase the cache expires time ?
Thanks in advance
Comments
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedWhat server are you running on? Apache, Nginx, ect? The Cache-Control configuration depends on that. AdvAgg has a default of 52 weeks if using Apache.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedComment #4
selinav CreditAttribution: selinav commentedHello,
It runs on Apache on ovh share hosted.
Finally, to fix it I've added this on my htaccess to increase cache time.
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedOk good to know; the default above what you added should have taken care of that for you
Which means you have a specific rule in your .conf file making these files only last for 15 minutes.
I'll see about better documentation for this issue.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedChecked the readme and this is already documented.