Set up the page cache

Keep pages that rarely change in Weekerp to show them faster, and choose paths that go straight to your origin.

If you keep pages that rarely change, such as your company page or landing pages, in Weekerp, visitors see them faster. You don't need to change your server code.

The page cache is off by default and applies only to pages you create rules for. Requests from signed-in visitors aren't cached.

 

1. Open the screen

In the sidebar, open Search & AI visibility settings > Page cache. Choose a site under Applies to at the top, then click Add rule.

 

2. Choose the rule type

Type Choose it when
Cache rule You want to set how long this page is kept
No cache You have paths that should go straight to your origin server without passing through Weekerp

For No cache, enter the path and click Add. Subpaths are included, and you can use wildcards like /partner*. Cache and SEO settings don't apply to these paths, so please use it for pages where search visibility doesn't matter. Some common paths, such as sign-in and checkout, already go straight to the origin, so you don't need to add them.

 

3. Choose the pages (cache rule)

Option Example
One page A single address, like /en/pricing
Some pages A group, like /en/*
All pages The whole site

If a page matches more than one rule, the rule with the narrower scope applies first.

 

4. Set how long to keep it

Turn on Cache (s-maxage) and choose Keep for. You can choose from 1 minute to 7 days, or use Custom to enter minutes, hours, or days. If an All pages rule is on and you want to turn it off for a specific page, turn off the cache in that page's rule.

When you click Save, the cache for that page is cleared once and the new settings apply. It takes about 2 minutes to take effect.

 

5. Advanced settings (only when needed)

Expand Advanced to set the items below. Start with the defaults and change only what you need.

Item What it does
Keep in visitor's browser (max-age) How long the visitor's browser keeps the page. 0 means it's fetched fresh every time
Use the cache while refreshing After the keep time ends, the cached page is still shown for this long while a fresh copy is fetched in the background
Use the cache when the origin fails If your origin server doesn't respond, a cached page from within this time is shown instead
Force cache (ignore Cache-Control) Caches for the set time even if the origin blocks caching (no-store, private)
No-cache query parameters Addresses that include these queries, like /?s=keyword or /?preview=true, aren't cached. Separate several with commas
Do-not-cache cookies If a visitor's request has one of these cookies, the response isn't stored. Enter sign-in and cart cookies
Cache-safe cookies The page is cached even if the origin sets these cookies. Please use this only for bot-check or analytics cookies (for example, _ga*)
Error page cache How long error pages such as 404 and 410 are kept

Please don't use Force cache or Cache-safe cookies on pages that look different for each person, such as sign-in, cart, or my-page.

 

Clear the cache

If you updated a page but still see the old version, click Clear cache at the top right. You can clear the whole site or specific paths. For details, see Clear the cache.

 

Good to know

  • It applies only to HTML pages. Images and files are cached separately.
  • Pages where the origin sets a cookie aren't cached. If it's a bot-check cookie, add it to Cache-safe cookies.
  • For paths connected with a reverse proxy, choose that proxy under Applies to and set them up separately.
  • If you're not sure which pages to cache, contact us.