• 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: 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