Skip to content

Commit e4803c2

Browse files
Merge pull request SharePoint#8809 from johnnycardy/patch-1
Update deploy-web-part-to-cdn.md
2 parents bcd31fb + ff02293 commit e4803c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Loading

docs/spfx/web-parts/get-started/deploy-web-part-to-cdn.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Deploy your SharePoint client-side web part to Azure CDN
33
description: Create a new sample web part and deploy its assets to an Azure CDN instead of using the default Office 365 CDN as the hosting solution.
4-
ms.date: 06/13/2022
4+
ms.date: 03/08/2023
55
---
66
# Deploy your SharePoint client-side web part to Azure CDN
77

@@ -64,6 +64,10 @@ Create a new CDN profile and associate the CDN endpoint with this BLOB container
6464

6565
![Screenshot of create CDN endpoint](../../../images/deploy-create-cdn-endpoint.png)
6666

67+
1. To allow scripts to be cached by the SharePoint service worker, add an appropriate Cache-Control response header to the CDN endpoint.
68+
69+
![Screenshot of add a cache control header](../../../images/deploy-create-cdn-cache-control-header.png)
70+
6771
Because you associated the CDN endpoint with your storage account, you can also access the BLOB container at the following URL: **`http://spfxsamples.azureedge.net/azurehosted-webpart/`**
6872

6973
Note, however, that you have not yet deployed the files.

0 commit comments

Comments
 (0)