From cb9ac15eeb93f0d7a2715c252dd3c522f627fa12 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 1 May 2024 18:41:51 -0700 Subject: [PATCH] chore: redirects and headers --- _redirects | 2 ++ netlify.toml | 5 +++++ package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/_redirects b/_redirects index 4f07144d..c1689197 100644 --- a/_redirects +++ b/_redirects @@ -97,6 +97,8 @@ https://cdme.netlify.app https://coryd.dev 301! # media /media/* https://f001.backblazeb2.com/file/coryd-dev-images/:splat 200! +/media/square/* /.netlify/images?url=/:splat&fit=cover&w=240&h=240&fm=webp&q=75 200! +/media/vertical/* /.netlify/images?url=/:splat&fit=cover&w=200&h=307&fm=webp&q=75 200! # analytics /23af0256fe76a.js http://static.getclicky.com/js?in=/2842c5ddc46e5 200! diff --git a/netlify.toml b/netlify.toml index fd749afa..03caeda9 100644 --- a/netlify.toml +++ b/netlify.toml @@ -27,6 +27,11 @@ package = "/plugins/fetch-scrobbles" ### # HEADERS ### +[[headers]] + for = "/media/*" + [headers.values] + Cache-Control = "public, max-age=604800, must-revalidate" + [[headers]] for = "/feeds/posts" [headers.values] diff --git a/package.json b/package.json index ca664941..c3956a11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "13.4.3", + "version": "13.4.4", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": {