База знаний

Protection cache and browser cache durations

Эта статья есть на вашем языке: Срок хранения на защите и в браузере

WebShield separates storage on protection servers from storage in visitors' browsers. Purging the protection cache does not remove browser copies.

Open WebShield → example.com → Site protect cache, replacing the domain with yours. You need caching and available cache settings. Enable file caching and disable development mode for testing. Most duration controls currently have Russian labels.

Choose durations

  1. In Срок хранения на серверах защиты (Protection server cache duration), choose 1 день (1 day), for example. Options are 1 hour, 1 day, 7 days, and 30 days. Purge the cache to refresh stored content earlier.
  2. In Срок хранения в браузере (Browser cache duration), choose 1 час (1 hour), for example. Additional options are 30 minutes, 1 day, 7 days, 30 days, and 1 year.
  3. Select Как указывает ваш сервер (As specified by your server) if the origin should control browser caching instead of a fixed duration.
  4. Wait for saving and deployment after each change. No separate save button is needed. Reload to confirm the values.

Protection-server cache lifetime

The protection duration setting updates responses with status 200, 206, and 301. It does not give every possible error the same lifetime. If a field shows разные сроки (Different durations) or задано администратором (Set by administrator), choosing a normal option replaces the corresponding configured durations.

Check the result

For https://example.com/css/app.css, inspect response headers and repeated loading in developer tools. Test again with browser caching disabled to examine protection-side behavior separately.

Long browser durations suit files renamed on each release, such as app.2026-11.css. Replacing the same app.css can leave visitors seeing an older browser copy until its existing lifetime expires. A new setting cannot recall earlier responses from their browsers.

Use purging and URL versioning for updates. Also review the duration inside any separate HTML caching rule.

Статья была полезна?