Lofesa commented on issue #1897:
URL: 
https://github.com/apache/incubator-pagespeed-mod/issues/1897#issuecomment-963968735


   Yes, not "under certain cases" but in all cases file extension match the 
nginx location.
   URL rewrited by pagespeed have the same file extension that the original 
file or in a image case maybe is changed by webp that matches too.
   If you have:
   location regex expresion for file extension {.... }
   location for pagespeed in url {...}
   pagespeed uri are captured allways by the location for file extension, donĀ“t 
found it as a file and then go to apache, that know nothing about pagespeed 
uris, so return 404.
   Nginx parse the config file from up to down and the location that 1s match 
the regex expresion captures the uri.
   If you have all the pagespeed config (location block included) in the 
vhos_nginx.conf file, you must put it before the location for file extensions.
   Ths makes pagespeed uris to be captured by the 
   l```
   ocation ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
        add_header "" "";
   }
   ```
   and not by the location for file extensions.
   


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

To unsubscribe, e-mail: dev-unsubscr...@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to