You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2019/06/14 03:54:27 UTC

[GitHub] [incubator-pagespeed-ngx] csandanov commented on issue #1655: Clarification about downstream caching documentation

csandanov commented on issue #1655: Clarification about downstream caching documentation
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1655#issuecomment-501958414
 
 
   Thank you for your comment. 
   
   > I think the cache-control is overridden to make sure no-one downstream caches it.
   
   Do you mean another caching reverse proxy before varnish? A very specific thing to have in the standard configuration.
   
   > Varnish will cache it though
   
   From what I know the good practice is when Varnish does consider cache headers from backend responses and usually, Varnish config has something like this:
   
   ```
   if (beresp.http.Cache-Control ~ "no-cache") {
           set beresp.http.X-VC-Cacheable = "NO:Cache-Control=no-cache";
           set beresp.uncacheable = true;
           set beresp.ttl = 120s;
   }
   ```
   
   I'm happy to open PR to improve the documentation or add some clarifications if you think they're needed.

----------------------------------------------------------------
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