Skip to content

Commit

Permalink
feat: cache images
Browse files Browse the repository at this point in the history
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
  • Loading branch information
peterpeterparker committed Nov 30, 2024
1 parent d8c7f95 commit ada52cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions juno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ const headers: StorageConfigHeader[] = [
source: "**/*.svg",
headers: [["Cache-Control", "max-age=2592000"]]
},
{
source: "**/*.png",
headers: [["Cache-Control", "max-age=2592000"]]
},
{
source: "**/*.webp",
headers: [["Cache-Control", "max-age=2592000"]]
},
{
source: "/animations/**/*.lottie",
headers: [["Cache-Control", "max-age=2592000"]]
Expand Down

0 comments on commit ada52cd

Please sign in to comment.