While I’m working on my new blog (this blog 🙂 ), I started to face an issue. In random instances, I started to get this error from the browser.
502 - Web server received an invalid response while acting as a gateway or proxy server
First I thought this is an issue on Azure and tried to find a fix for it. But I couldn’t able to find any clue which points this issue to Azure. When I searched little bit more about it, I found that it’s issue in WordPress cache or cache configuration.
I found this blog for fix same issue when you use WP Total Cache but it didn’t help me as I expected because configuration of these two plug-ins were very different.
Finally I found a solution from MSDN Forums, and after I changed the settings as it said, I was able to get rid of this issue. Required changes are as below:
- Go to WP Super Cache Settings page
- Go to Advanced Settings
- Uncheck “304 Not Modified browser caching. Indicate when a page has not been modified since last requested.”
- Uncheck “Extra homepage checks.”
This solved the above mentioned issue for me. 🙂