cache is a simple and great feature that enhances performance.
ComboStrap has two levels of cache:
- page (and side_slots)
Anonymous Page Cache
When a page is visited anonymously, an anonymous page is served from the public cache
The parsing and rendering of a page in a different format are cached until some rules are met.
Learn them on this page: Set the cache expiration date of a page with the cache component
With the auto slots cache bursting, the slots are re-rendered in the background when they are stale.
For instance, if a secondary slot becomes stale due to the creation of a page or the modification of a primary metadata such as name, title, the secondary slot is rendered in the background showing up in the next request
Action: If you have any ~~NOCACHE~~ instructions in your slots, just delete them.
If a secondary_slots or a page becomes stale due to cache expiration frequency, we re-render them in the background.
The first render is then stale but not the next one.
For images, ComboStrap supports two caches:
- server cache that caches all processed image (for instance, svg optimization but also image resizing)
- browser cache with the infinite static cache