• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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