diff --git a/src/content/docs/workers/static-assets/direct-upload.mdx b/src/content/docs/workers/static-assets/direct-upload.mdx index 53d6a4fd9527c3e..545902f83d7f3e8 100644 --- a/src/content/docs/workers/static-assets/direct-upload.mdx +++ b/src/content/docs/workers/static-assets/direct-upload.mdx @@ -38,7 +38,7 @@ sequenceDiagram User<<->>Workers API: Upload script version
PUT /client/v4/accounts/:accountId/workers/scripts/:scriptName ``` - + ```mermaid sequenceDiagram participant User diff --git a/src/content/partials/workers/custom_headers.mdx b/src/content/partials/workers/custom_headers.mdx index ff960f6ef8c9c9d..142bfe0f735b320 100644 --- a/src/content/partials/workers/custom_headers.mdx +++ b/src/content/partials/workers/custom_headers.mdx @@ -128,6 +128,15 @@ For example, to prevent your {props.product === 'workers' ? '\*.workers.de } /> +##### Configure custom browser cache behavior + +If you have a folder of fingerprinted assets (assets which have a hash in their filename), you can configure more aggressive caching behavior in the browser to improve performance for repeat visitors: + +```txt +/static/* + Cache-Control: public, max-age=31556952, immutable +``` + ##### Harden security for an application :::caution