You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Storefront leverages many caching strategies to ensure fast performant user experiences for your end customers.
8
+
9
+
:::tip Use Network Domain while Building Themes
10
+
Always use the store network domain `{store}.29next.store` when developing themes to bypass full page caching and preview your latest updates.
11
+
:::
12
+
13
+
### Assets CDN
14
+
15
+
All merchant uploaded media assets and theme assets are loaded from our CDN for the fastest performance.
16
+
17
+
### Full Page Caching
18
+
19
+
All pages on storefront are cached for 5 minutes under the following conditions.
20
+
21
+
- User is Anonymous (unauthenticated).
22
+
- Domain is a merchant mapped domain.
23
+
- Page is not dynamic, ie `/cart/`, `/checkout/`, `/accounts/` do not use full page caching.
24
+
25
+
26
+
### Template Caching
27
+
28
+
Themes use many templates ie layouts, partials, and assets when compiled together create amazing customer experiences. Templates are cached in memory to reduce database queries when compiling templates into the full html response.
29
+
30
+
Updating a template through the dashboard or [Theme Kit](/docs/storefront/themes/theme-kit.md) should automatically purge the cache for you to see your latest changes on the network domain, see notes above.
31
+
32
+
33
+
:::warning
34
+
There are a few cases wherein a form on the frontend needs to use a `{% csrf_token %}` field to secure submission to the backend. The platform core JS will automatically replace `{% csrf_token %}` that are in cached versions of pages to ensure the forms still work.
35
+
36
+
**It is advisable to not implement custom templates that require `{% csrf_token %}`, we recommend to [Storefront API](/docs/storefront/api.md) instead.**
@@ -618,76 +567,8 @@ Storefront Menus can be up to 3 levels, ensure your custom menu supports 2 neste
618
567
|`name`| String | Represents the display name of the current menu item. |
619
568
|`url`| String | Denotes the URL path for the menu item's href link. |
620
569
621
-
### order
622
570
623
-
Order object available on the order confirmation view, typically used in tandem with javascript conversion snippets through apps or custom theme implementations, see example usage below. Only available in the `confirmation` step in the `checkout/checkout.html` template, see [Checkout Customization](/docs/storefront/themes/guides/checkout.md).
0 commit comments