One great feature of the Sucuri Firewall is its caching. You not only get protection but also speed optimization due to our high performance caching. This will make your site rank better, helping your SEO.
Sucuri offers four caching options. You can see them all under Performance -> Caching Level in Sucuri Firewall’s settings.
Here is what each option means:
Enabled (recommended) – Enabled (selected by default) will cache your pages and redirects for 180 minutes and 404 for 4 minutes. This is the best option when it comes to site performance, it will make your site faster and more resilent against DDoS attacks.
Minimal caching (only for a few minutes) – Minimal will cache your pages for 8 minutes, redirects for 15 minutes and 404 for 2 minutes. This is the best option when you need to make constant updates to your site, such as newspaper, blog, portals, etc.
Site caching (using your site headers) – Site Caching won’t cache page content for logged-in users, redirects for 3 hours and 404 for 4 minutes. This is the best option if you run a custom CMS, a forum like vBulletin or an eCommerce store. Cache headers sent by your application will be respected, so if your application doesn’t send the "no-cache" headers it may cache your pages content.
Disabled (use with caution) – Disabled won’t cache page content for logged-in users, redirects for 10 minutes and 404 for 1 minute, but note that it can slow down your site. Cache headers sent by your application will be respected, so if your application doesn’t send the "no-cache" headers it may cache your pages content.
Regardless of the caching level you chose, static files will be cached for 3 days.
During development, it’s recommended that you use Developer Mode to avoid caching entirely, including static files cache. You can also use "versioning" which will ensure updates go live as expected. This is done by adding a query string such as "?ver=123.1" and incrementing (such as ?ver=123.2) on each update. The final option is to clear Sucuri Firewall’s cache.
Also, note that you can always clear your site’s cache whenever you want, even with the "Enabled" option by going to "Performance" under your Sucuri Firewall’s settings and clicking on "Clear Cache".