Skip to content

Commit 2e12ebf

Browse files
committed
refinement
1 parent fcd3377 commit 2e12ebf

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

docs/storefront/themes/cdn-and-caching.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,35 @@ sidebar_position: 2
44
title: Storefront CDN & Caching
55
---
66

7-
Storefront leverages many caching strategies to ensure fast performant user experiences for your end customers.
7+
Storefront leverages CDNs and many caching strategies to ensure fast performant user experiences for your end customers.
88

9-
:::tip Use Network Domain while Building Themes
9+
:::info Use Network Domain while Building Themes
1010
Always use the store network domain `{store}.29next.store` when developing themes to bypass full page caching and preview your latest updates.
1111
:::
1212

13-
### Assets CDN
13+
### Asset CDN
1414

1515
All merchant uploaded media assets and theme assets are loaded from our CDN for the fastest performance.
1616

17+
- **Media** - Links to uploaded media should always use the `cdn.29next.store`
18+
- **Theme Assets** - Theme assets should use the [asset_url](/docs/storefront/themes/templates/filters.md#asset_url) in templates which always generates a full CDN link on the storefront.
19+
1720
### Full Page Caching
1821

19-
All pages on storefront are cached for 5 minutes under the following conditions.
22+
All pages on storefront are cached for 5 minutes to ensure popular pages are as fast as possible for customers and minimal impact on the overall platform load.
2023

2124
- User is Anonymous (unauthenticated).
2225
- Domain is a merchant mapped domain.
2326
- Page is not dynamic, ie `/cart/`, `/checkout/`, `/accounts/` do not use full page caching.
2427

2528

29+
:::tip
30+
To skip the cache, you can append a unique querystring such as `?skip_cache` to skip existing cache and see the latest.
31+
:::
32+
2633
### Template Caching
2734

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.
35+
Themes use many templates ie `layouts`, `partials`, and `assets` that when compiled together create amazing customer experiences. Templates are cached in memory to reduce database queries when compiling templates into the full html response.
2936

3037
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.
3138

0 commit comments

Comments
 (0)