Dreamsorcerer commented on issue #1657: ngx_pagespeed breaks updating WP by 
caching POST requests
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1657#issuecomment-506992692
 
 
   Yep, looks like disallow works, and I've also figured out nginx config to 
not add cache headers to POST requests, which also works. So, it must be that 
Pagespeed is responding to the cache headers and caching them on the server.
        ```
        map "$request_method:$sent_http_content_type" $expires {
                default                 15m;
                ~*(POST|PUT):.*         off;
                ~*.*:text/css           1M;
                ~*.*:application/javascript     1M;
                ~*.*:text/x-component   1M;
                ~*.*:audio/.*           1M;
                ~*.*:video/.*           1M;
                ~*.*:image/.*           6M;
                ~*.*:font/.*            1y;
        }
        expires $expires;
   ```

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