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
Whether you're fine-tuning global delivery or preparing for high-traffic scenarios, this section provides the tools and knowledge to make your project perform at its best.
3
+
Whether you're fine-tuning global delivery or preparing for high-traffic scenarios, you can find tools to make your project perform at its best.
4
4
5
-
With a combination of global content delivery, smart caching, and flexible hosting regions, you can ensure your users always get the fastest and most responsive experience
5
+
With a combination of global content delivery, smart caching, and flexible hosting regions, ensure your users always get the fastest and most responsive experience.
6
6
7
7
<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="manage-cdn-caching.md">CDN Caching and Optimizations</a></td><td>Deliver your content quickly and efficiently while handling spikes in traffic without compromising the experience for visitors. </td><td><a href="manage-cdn-caching.md">manage-cdn-caching.md</a></td><td><a href="../.gitbook/assets/Documentations Icons_Umbraco_CMS_Reference_Caching.png">Documentations Icons_Umbraco_CMS_Reference_Caching.png</a></td></tr><tr><td><a href="migrate-between-regions.md">Migrate between regions</a></td><td>Need to move your project closer to your primary audience? This article will help you migrate your project(s) from one region to another.</td><td><a href="migrate-between-regions.md">migrate-between-regions.md</a></td><td><a href="../.gitbook/assets/Documentations Icons_Umbraco_CMS_Implementation_Custom_Routing.png">Documentations Icons_Umbraco_CMS_Implementation_Custom_Routing.png</a></td></tr></tbody></table>
Copy file name to clipboardExpand all lines: umbraco-cloud/optimize-and-maintain-your-site/optimize-performance/manage-cdn-caching.md
+30-14Lines changed: 30 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,31 +2,46 @@
2
2
3
3
After [adding hostnames](../../go-live/manage-hostnames/) to your project, it's possible to configure Content Delivery Network (CDN) Caching. This can be done for all or specific hostnames within your project.
4
4
5
-
These caching options all relate to the traffic that goes through your hostname from the origin (Umbraco Cloud) to the end-user i.e. the traffic of your website and assets from the webserver to the browser.
5
+
The caching options relate to the traffic that goes through your hostname from the origin (Umbraco Cloud) to the end-user. This is the traffic of your website and assets from the webserver to the browser.
When a new hostname is added to a Project, the default settings will be applied. However, you can change the default settings for your project, so that the new hostnames will get the settings you have chosen. This also means that if you enable caching in the default settings and add a new hostname, that caching will be enabled for that new hostname.
15
+
When a new hostname is added to a Project, the default settings will be applied. However, you can change the default settings for your project so that the new hostnames will get the settings you have chosen. This means that when enabling caching in the default settings and adding a new hostname, caching is enabled for that new hostname.
16
16
17
17
## Caching Explained
18
18
19
-
When Caching is enabled on your project it means that static assets like CSS and images are going to be cached in the Content Delivery Network (CDN) used by Umbraco Cloud. How assets are cached is up to you, as you can control it through 'cache-control headers'.
19
+
When caching is enabled on your project static assets like CSS and images are cached in the Content Delivery Network (CDN) used by Umbraco Cloud. How assets are cached is up to you, as you can control it through 'cache-control headers'.
20
20
21
-
By default, Umbraco Cloud will enforce a minimum Time to Live (TTL) based on the Plan of your Umbraco Cloud Project, which means that assets cannot be cached for a shorter period than what your Plan allows. You can always choose a longer duration, especially, if you don't expect your assets to change.
21
+
By default, Umbraco Cloud enforces a minimum TTL based on the plan of your Umbraco Cloud Project. This means that assets cannot be cached for a shorter period than what your Plan allows. You can always choose a longer duration, especially, if you don't expect your assets to change.
The following file types are cached as static assets through the CDN:
24
24
25
-
If you want to disable caching on certain types of static assets, you can use a 'no-cache' cache-control header, which will be respected by the caching strategy in the CDN. You can utilize an outbound rewrite rule to add such a cache-control header to the request.
25
+
|`7z`|`ppt`|`webm`|`bz2`|
26
+
|`csv`|`tiff`|`bin`|`eps`|
27
+
|`gif`|`zst`|`ejs`|`jpeg`|
28
+
|`midi`|`avif`|`jar`|`pdf`|
29
+
|`png`|`docx`|`ogg`|`svgz`|
30
+
|`tif`|`ico`|`rar`|`woff2`|
31
+
|`zip`|`mp3`|`webp`|`class`|
32
+
|`avi`|`pptx`|`bmp`|`exe`|
33
+
|`doc`|`ttf`|`eot`|`js`|
34
+
|`gz`|`apk`|`jpg`|`pict`|
35
+
|`mkv`|`dmg`|`otf`|`swf`|
36
+
|`ps`|`iso`|`svg`|`xls`|
37
+
|`mp4`|`css`|`woff`|`flac`|
38
+
|`pls`|`mid`|`tar`|`xlsx`|
39
+
40
+
If you want to disable caching on certain types of static assets, you can use a 'no-cache' cache-control header. This will be respected by the caching strategy in the CDN. You can utilize an outbound rewrite rule to add such a cache-control header to the request.
26
41
27
42
The following example adds a cache-control header with 'no-cache' as the value when the requested Url contains a PDF file:
28
43
29
-
```
44
+
```xml
30
45
<rewrite>
31
46
<outboundRules>
32
47
<rulename="Set Cache-Control - No-Cache PDF">
@@ -54,7 +69,8 @@ When **Cache Everything** is enabled, everything including the webpage is cached
54
69
When a webpage is cached, it will be stripped of any cookies that are otherwise part of the request. If you use cookies as part of the website, be aware of the implications of using Cache Everything.
55
70
{% endhint %}
56
71
57
-
When using Cache Everything you should use a Cache TTL, which matches the Editor's expectations of when the webpage is refreshed with a new version loaded from the origin. As an example, choosing a Cache TTL of 2 hours means that the webpage will be served from the cache for 2 hours and then it will be refreshed with a copy from the origin. If Editors make changes every 30 minutes, they will have to wait at least two hours until they can see the changes on the website.
72
+
73
+
When using Cache TTL, the Editor's expectations of when the webpage is refreshed is matched with a new version loaded from the origin. As an example, choosing a Cache TTL of 2 hours means that the webpage will be served from the cache for 2 hours. Then it will be refreshed with a copy from the origin. If Editors make changes every 30 minutes, they will have to wait at least two hours until they can see the changes on the website.
58
74
59
75
{% hint style="warning" %}
60
76
We recommend using Cache Everything with caution.
@@ -64,13 +80,13 @@ We recommend using Cache Everything with caution.
When assets are cached for a long time and you need to refresh them, you can choose to purge the CDN cache to remove everything from the cache and force a refresh. This can be useful after having deployed changes to JS and CSS files, which are cached in the CDN. If you have caching enabled, you can purge the cache in the Purge Cache section at the bottom of the page.
83
+
When you need to refresh cached assets, you can purge the CDN cache to remove everything and force a refresh. This can be useful after having deployed changes to JS and CSS files, which are cached in the CDN. If you have caching enabled, you can purge the cache in the Purge Cache section at the bottom of the page.
68
84
69
-
Cache purging is done per hostname and it can take up to 30 seconds before assets are completely gone from the CDN, as it's refreshed globally.
85
+
Cache purging is done per hostname and can take up to 30 seconds before assets are gone from the CDN, as it's refreshed globally.
70
86
71
87
By default, all hostnames are selected, but you can choose to purge specific hostnames from the environments in your Umbraco Cloud project.
72
88
73
-
Purging the cache is a heavy operation, so there is a constraint on how many purge requests can be done within 24 hours. The 24 hours starts from the moment you Purge. So if you have 2 Purge requests available and Purge twice within an hour, then you can Purge again in 23 hours (for the first Purge request) and then again in 24 hours (for the second Purge request).
89
+
Purging the cache is a heavy operation, so there is a constraint on how many purge requests can be done within 24 hours. The 24 hours starts from the moment you Purge. If you have 2 Purge requests available and Purge twice within an hour, you can Purge again in 23 hours and then 24 hours.
74
90
75
91
In the Purge Cache section, you can see how many Purge requests you have available and when.
76
92
@@ -108,12 +124,12 @@ The number of Cache Purge requests within 24 hours:
108
124
109
125
## CDN Caching and Optimizations
110
126
111
-
From your Umbraco Cloud Project, click **CDN Caching & Optimization** from the **Settings** dropdown to configure the caching options. All settings are scoped per environment, so if you have multiple environments and add your hostnames to different environments you can select the environment at the top of the page.
127
+
From your Umbraco Cloud Project, click **CDN Caching & Optimization** from the **Settings** dropdown to configure the caching options. All settings are scoped per environment. This means that if you have multiple environments you can select the specific environment at the top of the page.
112
128
113
129
Aside from environments, the CDN Caching & Optimization page is divided into two parts: **Default Settings** and **Hostname Specific Settings**.
Use the **Default settings** to configure default settings that should be applied to new and existing hostnames.
118
134
119
-
If you want to have different caching options for different hostnames, then select the hostname under **Hostname-specific settings** and adjust the options for that specific hostname. This might be useful if you want to test the different options on another hostname than your primary hostname.
135
+
If you want to have different caching options for different hostnames, select the hostname under **Hostname-specific settings** and adjust the options. This might be useful if you want to test the different options on another hostname than your primary hostname.
Copy file name to clipboardExpand all lines: umbraco-cloud/optimize-and-maintain-your-site/optimize-performance/migrate-between-regions.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,9 @@ The East US and West EU regions will be used as examples in this article.
19
19
* A local setup that can run an Umbraco instance. Learn more about this in the [Requirements](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/requirements) article.
20
20
21
21
{% hint style="info" %}
22
-
If you want to migrate an Umbraco 8 project, you will need to upgrade to the latest supported [Long-Term-Supported (LTS)](https://umbraco.com/products/knowledge-center/long-term-support-and-end-of-life/) version of Umbraco CMS.
22
+
23
+
If you want to migrate an Umbraco 8 project, you must upgrade to the latest supported [Long-Term-Supported (LTS)](https://umbraco.com/products/knowledge-center/long-term-support-and-end-of-life/) version of Umbraco CMS.
0 commit comments