• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Nginx caching issue.

khaled

New Pleskian
Hello, I almost a week and I didn't manage to setup the cache correctly thought Nginx.
I just getting : x-cache-status: BYPASS


-Plesk Onyx v17.8.11_build1708180301.19 os_Ubuntu 16.04
-wordpress.

I am using Cloudflare.

I tried to add :
proxy_ignore_headers "Set-Cookie";
proxy_hide_header "Set-Cookie";

to Additional Nginx directives. nothing change I keep getting: x-cache-status: BYPASS
 

Attachments

  • 2019-11-13_1113.png
    2019-11-13_1113.png
    469.9 KB · Views: 36
  • 2019-11-13_1112.png
    2019-11-13_1112.png
    148.1 KB · Views: 34
  • 2019-11-13_1111.png
    2019-11-13_1111.png
    117.5 KB · Views: 33
According to your first screenshot, you are opening your homepage. This is not a static file but a .php file. All dynamic content is forwarded to Apache and not cached by Nginx. Only static files are cached.

Instead try to request an image file only and check again whether it is cached. Also keep in mind that the cache is a short time cache only, so only if the same file is requested within n seconds it will be delivered from the cache.
 
Thank you. I really tried the same steps in the last article. but not sure what is the problem still.
 
Back
Top