Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If your site is on Apache hosting (e. g. Acquia) then make sure you don't have httaccess redirects from additional domains and into https. And all of them are powered through CloudFlare UI.


Additionally it is also a good idea to exclude admin pages from caching.

Setup no caching on these ones.

Read more in this documentation

The result you are aiming for isĀ  cf-cache-status: HIT in the headers of your network tab in browser inspector after you load the page a couple times.

If the result says DYNAMIC - your page cache isn't working.

If the result says BYPASS - cookie is in place - check that your cookie exception is correct and you are not logged in.

Troubleshooting

It is essential to troubleshoot your cache. Go through multiple browsers like Safari and IE 11 and check that images are still loading, JS and CSS are still working as expected.

Tip: if your JS is not working turn off / on (switch to the opposite state) aggregation in Drupal performance menu. Save and clear the cache.

Go to CloudFlare and purge.

Turn on aggregation back and clear the cache again - it may take it some time to propagate.

Check these elements on every deployment.

Check search and time sensitive views - make sure they still update as expected.

Filter by label (Content by label)
showLabelsfalse
max5
spacesKALA
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "KALA"
labelskb-how-to-article

...