How Caching Works
A cache is a saved copy of your pages and files, kept close to your visitors. nsin serves it right away — pages load faster, server works less. It turns on automatically once your site is live.
What gets cached
Section titled “What gets cached”- Static files (images, CSS, JS, fonts, media, downloads) are cached automatically for every domain by file extension, like Cloudflare. HTML is never cached this way.
- Pages that change per user, like an account page, stay uncached, so people see their own data.
nsin follows your server’s Cache-Control header, or checks back after 5 minutes. It never stores no-store/private files, cookie-setting responses, or downloads (PDFs, ZIPs) for a logged-in visitor.
The query string is part of the cache key: style.css?v=42 and ?v=41 are different objects, so ?v= busting works as-is. Hashed filenames (app.3f9c.js) need no purge.
Cached file extensions
Section titled “Cached file extensions”css js svg svgz ico png jpg jpeg gif webp avif bmp tif tiff pict epswoff woff2 ttf otf eot mp3 mp4 webm ogg flac mkv avi mid midi swf pdfdoc docx xls xlsx ppt pptx csv txt zip rar 7z gz bz2 tar zst exe dmgiso apk bin jar class ps pls ejsA response cached this way carries Nsn-Cache-Rule: default; one under your own rule doesn’t. Switch it off per domain on the Cache page, or fine-tune with Cache Rules — rules win.
HIT and MISS
Section titled “HIT and MISS”Every response carries an Nsn-Cache-Status header, shown in analytics too:
| Status | Meaning |
|---|---|
| HIT | Already had a copy; served instantly, server not involved. |
| MISS | No copy yet — fetched from your server and saved. |
| BYPASS | Skipped on purpose (a cookie, an Authorization header, or a cache rule). |
| DYNAMIC | Not cacheable, so served straight from your server. |
A first visit is often a MISS, later ones usually HITs. An occasional MISS after is normal. See Proxy Headers for the list.
Clearing (purging) the cache
Section titled “Clearing (purging) the cache”Still seeing an old version? Clear everything, or just that page: Purging & Browsing the Cache.