summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-01-29 18:52:19 +0000
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-01-29 18:52:19 +0000
commit470482e4cc91e2200c7ad0ea7169b1ab36386be5 (patch)
tree15e909917641426eccde1a9317a5bb066557efb9 /README.md
parent287171d1bdf04d19ead09ce2b4257efdbb8e3c24 (diff)
Adds instructions for invalidating the CloudFront cache
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index ba1f663..dceffa2 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,18 @@
# personal-website
Joe Carstairs' personal website
+
+## Invalidating the CloudFront cache
+
+When you update pages, you’ll need to invalidate the CloudFront cache in order
+for CloudFront to serve the new versions before the caches expire (which could
+be a while). Here’s how to do it:
+
+1. Go to the CloudFront console
+2. Select the distribution for this website
+3. Go to the Invalidations tab
+4. Add a new Invalidation
+5. Include all pages you’ve updated
+ - Use the relative URL, not the filepath, e.g. "/blog/" not "/blog/index.html"
+ - Include the trailing "/" or it won’t work
+ - You can use wildcards to make life easier, e.g. "/blog/2024/01/29/*"
+