• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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