pagespeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1681: Uncacheable content, preventing rewriting of image
Date Wed, 04 Mar 2020 11:49:58 GMT
Lofesa commented on issue #1681: Uncacheable content, preventing rewriting of image
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1681#issuecomment-594475876
 
 
   I´m getting the webp images again. 
   Maybe is for the sort time in cache-control header. 3600 = 1h. This makes that every hour,
the assets get not optimized and need some hist to get it again.
   
   In the home page I still egtting the 2 cache-control headers.
   ```
   Cache-Control: no-cache, must-revalidate, max-age=0
   Cache-Control: max-age=3600, public, s-maxage=10
   
   ```
   You nee to found where the no-cache... is added and supress it.
   
   
   I forgot before comment on this:
   Yes you can use ExpiresByType for file types. But now, you have all resources with a cache-control=
3600, so maybe you have a `header set`  in place and that averrides the ExpiresByType.
   If you use the config set in you [comment](https://github.com/apache/incubator-pagespeed-ngx/issues/1681#issuecomment-593888538)
add a  
   
   ExpiresByType text/html "some time you consider but make it cacheable"
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message