رفتن به محتوا

How Caching Works

این محتوا هنوز به زبان شما در دسترس نیست.

A cache is a saved copy of your pages and files. Instead of asking your server for the same thing over and over, nsin keeps a copy close to your visitors and hands it to them right away. This makes your website much faster and takes load off your server.

You get caching automatically when your site is active on nsin.

  • Faster pages. Visitors get content from the closest nsin location, not from your far-away server.
  • Less work for your server. Your server answers fewer requests, so it stays healthy even when lots of people visit.
  • Better experience worldwide. Visitors far from your server still get quick load times.

nsin is smart about this:

  • Static files (images, CSS, fonts, downloads) are cached well, because they rarely change.
  • Pages that change for each user (like a logged-in account page) are normally not cached, so people always see their own data.

You can fine-tune this with Cache Rules.

When you look at caching info you may see two words:

  • HIT — nsin already had a copy and served it fast. 🎉
  • MISS — nsin didn’t have a copy yet, so it fetched it from your server and saved it for next time.

The first visit to a page is often a MISS; later visits become HITs.

If you update your site but still see the old version, the cache may be holding the previous copy. You can clear it:

  1. Go to the Caching section in your dashboard.
  2. Choose Purge:
    • Purge everything — clears all cached copies. Use this after a big update.
    • Purge a single file/URL — clears just one page or file.
  3. Confirm.

After purging, the next visit fetches a fresh copy from your server.

My visitors see an old page. Purge the cache for that page (see above).

Why was my page a MISS again? Cached copies don’t last forever, and big sites have many pages. It’s normal to see an occasional MISS.

Can I stop caching for one page? Yes — use a Cache Rule to bypass the cache for that page.