Caching configuration settings

This page describes the recommended configuration settings in Squiz Content Management.

These general guidelines apply to any standard public website.

Configuration area Recommendations

Root URLs

✅ Ensure appropriate root URLs have Use Cache selected.

Caching status

✅ Set to On.

Clear asset cache automatically

✅ Set to On.

Public level caching

✅ Set to On.

Permission level caching

🛑 Set to Off.

Group level caching

🛑 Set to Off.

Never enable permission or group-level caching because these cache settings interfere with the Stale-While-Revalidate (SWR) settings.

These recommended settings are all configured in the System Configuration screen (System configuration in the menu bar).

Field Value

Stale while revalidate

86400 (24 hours)

Stale if error expiry

604800 (7 days)

Send cacheable headers

Set to On.

Send last-modified header

Set to Off.

Send not modified status code

Set to Off.

Send cacheable headers for 404 pages

Set to On

Cache Manager Exceptions

Review any existing exceptions and evaluate whether they can be removed.

Cache Configuration

The Squiz Content Management cache should be configured following these recommendations to ensure optimized performance, faster response times, and efficient resource utilization.

Field Value Notes

Caching status

On

Cache storage type

Redis Cache Storage

ALWAYS use Redis

Default expiry

180

TTL in seconds

Accelerator Cache expiry

180

TTL in seconds

Browser Cache expiry

180

TTL in seconds.

If a page includes ESIs, the Cloudflare Worker sets this field to zero.

Clear proxy cache automatically

Off

Do not enable

Public level caching

On

Permission level caching

Off

Do not enable

Legacy option superseded by MAC.

Group level caching

Off

Do not enable

Legacy option superseded by MAC.

Send cacheable header

On

Clear asset cache automatically

On

Clears CMS asset cache when attributes or metadata are updated.

Cacheable header protocols

Both

HTTP cache control level

Public

Edge Permission header

Off

Do not enable

Relevant Root URLs

Select these option checkboxes:

  • Send headers

  • Public user only

How to the configuration settings affect users?

The recommended site and cache configuration settings allow Squiz Content Management to offer a responsive web experience to both website visitors and content editors.

Frontend user experience

Squiz Cloudflare workers utilize Stale-While-Revalidate (SWR) to maintain a responsive web experience.

cache in pop
Figure 1. Workflow explaining how content is served to public users
"Home" page request

When a user requests the home page, it is delivered directly from Cloudflare’s cache. No further action is taken if the age of the cached content is less than the configured TTL.

"About Us" page request

When a user requests the About Us page and its cache time-to-live (TTL) has expired, Cloudflare serves the cached version and then fetches updated content from the origin servers. The cache is then updated with content and a fresh TTL. Subsequent requests for the about-us page are served from this updated cache.

Cache management

Content continues to be served from the cache until either the SWR duration is reached or the cache is invalidated and refreshed with the latest version from the origin servers.

Public content delivery

Only the public versions of content are served from Cloudflare. The CMS and Component Service send non-cacheable headers for content requested by logged-in users.

Stale content handling

Stale content is served until the origin servers provide a cacheable response.

Content editor experience

Manual cache clearing is not required when content is updated using this configuration. Instead, editors should expect the changes to become visible to public users within five minutes of publication or modification.

Content preview

Content editors should use the Preview option on page assets to see how their updates will appear to the public.

Cache management restrictions

Content editors and administrators do not need to manually clear or force updates to the Cloudflare cache.