• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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: 38
  • 2019-11-13_1112.png
    2019-11-13_1112.png
    148.1 KB · Views: 36
  • 2019-11-13_1111.png
    2019-11-13_1111.png
    117.5 KB · Views: 35
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