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/07/04 02:37:43 UTC

[GitHub] [incubator-pagespeed-mod] rafaelpatro opened a new issue #1905: Headers not respecting ModPagespeedDisallow for page scripts

rafaelpatro opened a new issue #1905: Headers not respecting ModPagespeedDisallow for page scripts
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1905
 
 
   Hi guys
   I'm trying to disable mod_pagespeed for some pages and it works. Nothing optimized when applying _ModPagespeedDisallow_.
   
   But pagespeed headers keep affecting JS files.
   ```apache
   ModPagespeedDisallow "*/checkout/*"
   ModPagespeedRewriteLevel OptimizeForBandwidth
   ModPagespeedDisableRewriteOnNoTransform off
   ModPagespeedEnableFilters inline_css,move_css_to_head,inline_preview_images,lazyload_images,defer_javascript,canonicalize_javascript_libraries,insert_dns_prefetch,extend_cache,combine_javascript,convert_meta_tags,inline_google_font_css
   
   Header always set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" #not working
   ```
   
   So I'm trying to set _cache-control_ directive for JS files and has no effect.
   But when I disable pagespeed completely my _cache-control_ headers works.
   ```apache
   ModPagespeedDisallow "*/checkout/*"
   ModPagespeedRewriteLevel OptimizeForBandwidth
   ModPagespeedDisableRewriteOnNoTransform off
   ModPagespeedEnableFilters inline_css,move_css_to_head,inline_preview_images,lazyload_images,defer_javascript,canonicalize_javascript_libraries,insert_dns_prefetch,extend_cache,combine_javascript,convert_meta_tags,inline_google_font_css
   ModPagespeed Off
   
   Header always set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" #working
   ```

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