База знаний

Temporarily bypass caching during development

Эта статья есть на вашем языке: Как временно отключить кэш на время разработки

Режим разработки (Development mode) bypasses caching for three hours, then switches off automatically. Use it while repeatedly editing CSS, scripts, or images and checking files from the origin.

You need a working site, management access, and caching availability. Replace example.com with your domain. Upload the updated file first: bypassing a cache does not change the file itself. If your origin is 203.0.113.10, confirm the update reached that server; this IP is also an example to replace.

Enable it while editing

  1. Open WebShield → example.com → Site protect cache.
  2. Find Режим разработки and turn its switch on.
  3. Wait for Включён до … (Enabled until…). The time beside the switch shows when the mode ends.
  4. Open https://example.com/css/app.css and check its contents. Temporarily disable browser caching in developer tools.
  5. When finished, turn the same switch off. Expect Выключен (Disabled). Alternatively, let the three-hour period expire.

Development mode switch

After an enabling error, do not assume the mode is active. Check the switch and retry once the service is available. If the card is missing and the panel says settings will appear within a few minutes, wait and reload.

If the file still looks old

Development mode does not remove browser-cached files. Check the file's direct URL with browser caching disabled, then inspect the URL actually loaded by the page. The page may reference a different file or version.

Do not treat this mode as a cache purge. After publishing, purge the changed files and verify normal delivery with the mode disabled. The origin receives more requests while caching is bypassed, so end the mode when editing is complete. For recurring releases, use file versioning.

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