• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question nginx Caching - Bypass

weldy

New Pleskian
Server operating system version
Ubuntu 22.04.3 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.57 Update #4
I have enabled nginx caching but it is not working when I test it. Below are my settings. I have read almost every post on here that I can find regarding this problem but nothing seems to work.

Appreciate any help.

1703084622064.png

1703084891276.png
1703084952648.png
1703085006394.png
1703085031278.png
1703085057640.png
1703085081887.png
 
And in the "Additional nginx directives", please try
Code:
fastcgi_ignore_headers "Set-Cookie";
instead of the proxy entries, because you are using PHP-FPM through Nginx, not Apache. The proxy* directives work when using Apache.
 
Did you check which cookies your site is setting? A WordPress site, for example, will set a bunch of cookies which all need to be present in "Cache requests with cookies". However, that is not easily done since some cookies have dynamic names.
The Chrome plugin, "EditThisCookie", is useful to see cookie names and remove cookies.
 
Back
Top