• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue NGINX: x-cache-status: MISS

Manumarquez

New Pleskian
Hello:

Whenever I browse my website, I check that: NGINX: x-cache-status: MISS

If I refresh the page (f5) it changes to: HIT

So I think the cache time lasts a few seconds. How to increase it?.

What I really need, is for new users to receive a: x-cache-status: HIT

Regards
 
You can increase the NGINX caching timeout via the Apache & nginx Settings on your domain to a value better suited for your needs.
 
Timeout via the Apache & nginx Settings doesn't fix it.
I have discovered a customization (by editing the panel.ini file.):

[webserver]
; path where to store cache
nginxCacheDir = /var/cache/nginx
; default values
nginxCacheEnabled = off
nginxCacheSize = 62914560
nginxCacheTimeout = 5
nginxCacheKey = $scheme$request_method$host$request_uri
nginxCacheCookies = ""
nginxCacheBypassLocations = ""
nginxCacheBypassHeaderNocache = on
nginxCacheBypassHeaderAuth = on
nginxCacheBypassGetNocache = on
nginxCacheUseStale5xx = on
nginxCacheUseStale4xx = off
nginxCacheUseStaleUpdating = on
; maximum values
nginxCacheSizeMax = 1099511627776
nginxCacheTimeoutMax = 3153600000


Some expert knows how to customize it to extend the cache time. Also so that it does not take cookies into account.
 
Back
Top