From a56981fcfbb8f027cd9de76aa99f15b30d611c6a Mon Sep 17 00:00:00 2001 From: dng Date: Tue, 20 Sep 2022 11:51:28 -0700 Subject: [PATCH] Update apps/reference/docs/guides/storage-caching.mdx --- apps/reference/docs/guides/storage-caching.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/reference/docs/guides/storage-caching.mdx b/apps/reference/docs/guides/storage-caching.mdx index a0032e6ff26..3eacdd8efd0 100644 --- a/apps/reference/docs/guides/storage-caching.mdx +++ b/apps/reference/docs/guides/storage-caching.mdx @@ -27,6 +27,6 @@ The cache status of a particular request is sent in the `cf-cache-status` header If you expect the object to not change at a given URL, setting a longer cache duration is preferable. -If you need to update the version of the object stored in the CDN, there are various cache-busting techniques you can use. The most common way to do this is to add a version query parameter in the URL. For example, you can use a URL like `/storage/v1/object/sign/profile-pictures/cat.jpg?token=eyJh...&version=1` in your applications and set a long cache time of 1 year. When you want to update the cat picture, you can increment the version query parameter in the URL. The CDN will treat ``/storage/v1/object/sign/profile-pictures/cat.jpg?token=eyJh...&version=2`as a new object and pings the origin for the updated version. +If you need to update the version of the object stored in the CDN, there are various cache-busting techniques you can use. The most common way to do this is to add a version query parameter in the URL. For example, you can use a URL like `/storage/v1/object/sign/profile-pictures/cat.jpg?token=eyJh...&version=1` in your applications and set a long cache time of 1 year. When you want to update the cat picture, you can increment the version query parameter in the URL. The CDN will treat `/storage/v1/object/sign/profile-pictures/cat.jpg?token=eyJh...&version=2` as a new object and pings the origin for the updated version. Note that CDNs might still evict your object from their cache if it has not been requested for a while from a specific region. For example, if no user from United States requests your object, it will be removed from the CDN cache even if you set a very long cache control duration.