csandanov commented on issue #1900: Standard configuration for Varnish: disable 
html cache is optional
URL: 
https://github.com/apache/incubator-pagespeed-mod/pull/1900#issuecomment-502947673
 
 
   I'm new to pagespeed and maybe I just don't get something but I was reading 
this article and as I understand it is all about how to have cache while still 
using pagespeed? This is what I don't understand, the article starts with:
   
   > By default PageSpeed serves HTML files with Cache-Control: no-cache, 
max-age=0 so that changes to the HTML and its resources are sent fresh on each 
request. **The HTML can be cached,** however, if you:
   
   So, I have ngx_pagespeed and as I understand when I enable it, it adds 
no-cache header to all text/html. And there's a list of actions that I should 
follow to have the caching of text/html. Now, here's what I don't get – how 
html caching will be enabled? I have two options in mind:
   1. I should add additional configuration on varnish to specifically ignore 
no-cache header for text/html. This option sounds weird to me
   2. Just setting `pagespeed DownstreamCachePurgeLocationPrefix` on Nginx will 
tell pagespeed to no longer set no-cache header for text/html. But if it's so, 
then why would we add no-cache header on Varnish? If we do we won't achieve 
what we wanted in the first place – to cache HTML despite pagespeed
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to