Sir-Will commented on issue #1148:
URL: 
https://github.com/apache/incubator-pagespeed-mod/issues/1148#issuecomment-830158403


   Hm, I'm no longer able to reproduce the issue with the compression, maybe a 
cache related issue which cleared out today?
   
   Though I'm still facing the issue with not being able to set headers. I have 
`pagespeed RewriteLevel PassThrough;` set, so there are no modules loaded.
   > If you only enables image filters.... well there is a PageSpeed function 
that work when PageSpeed don´t fully optimize resources
   
   I'm mainly focused on the `convert_jpeg_to_webp` filter (which 
`InPlaceResourceOptimization` doesn't do), though the other default filters 
wouldn't hurt.
   
   I did rebuild the module with the `POSITION_AUX=true` environment variable 
yesterday, though after replacing the module there was no change. Not sure if I 
did build it wrong, or it's not working with dynamic modules.
   
   One workaround is to disable pagespeed before adding the headers, but that’s 
not the best solution.
   In this case below it works out because it's only being applied to none 
pagespeed files.
   ```nginx
   location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
        add_header "" "";
   }
   location ~* \.(css|gif|ico|jpe?g|js|png|svg|json)$ {
        pagespeed off;
        expires 30d;
        add_header Pragma public;
        add_header Cache-Control "public";
   }
   ```


-- 
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:
us...@infra.apache.org


Reply via email to