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/22 17:30:54 UTC

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

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


With regards,
Apache Git Services