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/06/29 22:50:11 UTC

[GitHub] [incubator-pagespeed-ngx] Dreamsorcerer edited a comment on issue #1657: ngx_pagespeed breaks updating WP by caching POST requests

Dreamsorcerer edited a comment 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:
users@infra.apache.org


With regards,
Apache Git Services