tobsch commented on issue #1535: Pagespeed with downstream cache: How to cache 
static resources?
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1535#issuecomment-365215897
 
 
   Hi Otto,
   
   I already tried this, nginx rejects to start if I set Cache-Control:
   
   ```
   nginx_1         | 2018/02/13 10:02:34 [emerg] 72#72: "pagespeed" directive 
"AddResourceHeader Cache-Control public, max-age=600, 
stale-while-revalidate=86400, stale-if-error=86400" Rejecting header 
'Cache-Control ' in /var/www/html/conf/nginx/pagespeed.conf:114
   ```
   
   For all other headers it works:
   
   ```
   X-Foo: public, max-age=600, stale-while-revalidate=86400, 
stale-if-error=86400
   ```
   
   From my perspective, this is a bug and ModifyCacheHeaders should be 
independent from extend_cache. If it is disabled, I still want to be able to 
use extend_cache for the .pagespeed. resources.
   
   If I am expert, I also want to be able to set caching headers for the 
.pagespeed. - resources manually?
   
   What do you think?
   
   
   
   
   

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


With regards,
Apache Git Services

Reply via email to