Dreamsorcerer opened a new issue #1657: ngx_pagespeed breaks updating WP by 
caching POST requests
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1657
 
 
   When editing a post in a WordPress site's admin area, clicking the 'save 
draft' button appears to work successfully, but the content is not actually 
saved.
   
   Looking at the network requests in Firefox, I can see that a POST request is 
sent to '/wp-json/wp/v2/posts/3591?_locale=user' with the post contents in the 
params, but the response contains the old contents of the post. This shows that 
the response appears to be cached on the server, I can also find a file in 
ngx_pagespeed's cache directory corresponding to that exact path.
   
   This happens even with `pagespeed RewriteLevel PassThrough;` and adding 
`pagespeed off;` into an appropriate location block. The only way I can find 
stop this behaviour is to disable pagespeed for the entire server block.
   
   Regardless, ngx_pagespeed should never be caching responses to POST requests 
in the first place.

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