Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

feat(static): add hashed badge images, cache them as immutable

Hampusb4595dab329d
diff --git a/fluxer_static/Caddyfile b/fluxer_static/Caddyfile
index 96e091280..57993143c 100644
--- a/fluxer_static/Caddyfile
+++ b/fluxer_static/Caddyfile
@@ -29,5 +29,11 @@
Cache-Control "no-store"
}
+ @hashedBadges path_regexp ^/badges/[0-9a-f]{16}\.(webp|png)$
+ header @hashedBadges {
+ defer
+ Cache-Control "public, max-age=31536000, immutable"
+ }
+
file_server
}
diff --git a/fluxer_static/badges/0b2c8e24de04c3f1.png b/fluxer_static/badges/0b2c8e24de04c3f1.png
new file mode 100644
index 000000000..979198859
Binary files /dev/null and b/fluxer_static/badges/0b2c8e24de04c3f1.png differ
diff --git a/fluxer_static/badges/0b2c8e24de04c3f1.webp b/fluxer_static/badges/0b2c8e24de04c3f1.webp
new file mode 100644
index 000000000..097e14a17
Binary files /dev/null and b/fluxer_static/badges/0b2c8e24de04c3f1.webp differ
diff --git a/fluxer_static/badges/124e3a5e2027dea1.png b/fluxer_static/badges/124e3a5e2027dea1.png
new file mode 100644
index 000000000..25e6dbd62
Binary files /dev/null and b/fluxer_static/badges/124e3a5e2027dea1.png differ
diff --git a/fluxer_static/badges/124e3a5e2027dea1.webp b/fluxer_static/badges/124e3a5e2027dea1.webp
new file mode 100644
index 000000000..e69619912
Binary files /dev/null and b/fluxer_static/badges/124e3a5e2027dea1.webp differ
diff --git a/fluxer_static/badges/2ffe4ecffcdba3cf.png b/fluxer_static/badges/2ffe4ecffcdba3cf.png
new file mode 100644
index 000000000..6bde92932
Binary files /dev/null and b/fluxer_static/badges/2ffe4ecffcdba3cf.png differ
diff --git a/fluxer_static/badges/2ffe4ecffcdba3cf.webp b/fluxer_static/badges/2ffe4ecffcdba3cf.webp
new file mode 100644
index 000000000..2249ed018
Binary files /dev/null and b/fluxer_static/badges/2ffe4ecffcdba3cf.webp differ
diff --git a/fluxer_static/badges/42cd5fbc480b7847.png b/fluxer_static/badges/42cd5fbc480b7847.png
new file mode 100644
index 000000000..07398f622
Binary files /dev/null and b/fluxer_static/badges/42cd5fbc480b7847.png differ
diff --git a/fluxer_static/badges/42cd5fbc480b7847.webp b/fluxer_static/badges/42cd5fbc480b7847.webp
new file mode 100644
index 000000000..f1ccc1f65
Binary files /dev/null and b/fluxer_static/badges/42cd5fbc480b7847.webp differ
diff --git a/fluxer_static/badges/4e621949f056b1a8.png b/fluxer_static/badges/4e621949f056b1a8.png
new file mode 100644
index 000000000..d0be906bf
Binary files /dev/null and b/fluxer_static/badges/4e621949f056b1a8.png differ
diff --git a/fluxer_static/badges/4e621949f056b1a8.webp b/fluxer_static/badges/4e621949f056b1a8.webp
new file mode 100644
index 000000000..1a4175f4b
Binary files /dev/null and b/fluxer_static/badges/4e621949f056b1a8.webp differ
diff --git a/fluxer_static/badges/5d3b4eacacb0ca67.png b/fluxer_static/badges/5d3b4eacacb0ca67.png
new file mode 100644
index 000000000..04d673a4e
Binary files /dev/null and b/fluxer_static/badges/5d3b4eacacb0ca67.png differ
diff --git a/fluxer_static/badges/5d3b4eacacb0ca67.webp b/fluxer_static/badges/5d3b4eacacb0ca67.webp
new file mode 100644
index 000000000..03206ad4b
Binary files /dev/null and b/fluxer_static/badges/5d3b4eacacb0ca67.webp differ
diff --git a/fluxer_static/badges/7377e2a1c9d4d2b6.png b/fluxer_static/badges/7377e2a1c9d4d2b6.png
new file mode 100644
index 000000000..4716e6781
Binary files /dev/null and b/fluxer_static/badges/7377e2a1c9d4d2b6.png differ
diff --git a/fluxer_static/badges/7377e2a1c9d4d2b6.webp b/fluxer_static/badges/7377e2a1c9d4d2b6.webp
new file mode 100644
index 000000000..3a9c1e054
Binary files /dev/null and b/fluxer_static/badges/7377e2a1c9d4d2b6.webp differ
diff --git a/fluxer_static/badges/80bb0940d19fa614.png b/fluxer_static/badges/80bb0940d19fa614.png
new file mode 100644
index 000000000..ee21639a4
Binary files /dev/null and b/fluxer_static/badges/80bb0940d19fa614.png differ
diff --git a/fluxer_static/badges/80bb0940d19fa614.webp b/fluxer_static/badges/80bb0940d19fa614.webp
new file mode 100644
index 000000000..0366e903b
Binary files /dev/null and b/fluxer_static/badges/80bb0940d19fa614.webp differ
diff --git a/fluxer_static/badges/8120d774496aa5f7.png b/fluxer_static/badges/8120d774496aa5f7.png
new file mode 100644
index 000000000..7c72cea78
Binary files /dev/null and b/fluxer_static/badges/8120d774496aa5f7.png differ
diff --git a/fluxer_static/badges/8120d774496aa5f7.webp b/fluxer_static/badges/8120d774496aa5f7.webp
new file mode 100644
index 000000000..3e0cf989f
Binary files /dev/null and b/fluxer_static/badges/8120d774496aa5f7.webp differ
diff --git a/fluxer_static/badges/88fe85ac14a20fb5.png b/fluxer_static/badges/88fe85ac14a20fb5.png
new file mode 100644
index 000000000..23290bb69
Binary files /dev/null and b/fluxer_static/badges/88fe85ac14a20fb5.png differ
diff --git a/fluxer_static/badges/88fe85ac14a20fb5.webp b/fluxer_static/badges/88fe85ac14a20fb5.webp
new file mode 100644
index 000000000..81aba804b
Binary files /dev/null and b/fluxer_static/badges/88fe85ac14a20fb5.webp differ
diff --git a/fluxer_static/badges/90fd8b9b5421bb6a.png b/fluxer_static/badges/90fd8b9b5421bb6a.png
new file mode 100644
index 000000000..056975d90
Binary files /dev/null and b/fluxer_static/badges/90fd8b9b5421bb6a.png differ
diff --git a/fluxer_static/badges/90fd8b9b5421bb6a.webp b/fluxer_static/badges/90fd8b9b5421bb6a.webp
new file mode 100644
index 000000000..96d4fb471
Binary files /dev/null and b/fluxer_static/badges/90fd8b9b5421bb6a.webp differ
diff --git a/fluxer_static/badges/a86a8f878dd99a5e.png b/fluxer_static/badges/a86a8f878dd99a5e.png
new file mode 100644
index 000000000..fda395de3
Binary files /dev/null and b/fluxer_static/badges/a86a8f878dd99a5e.png differ
diff --git a/fluxer_static/badges/a86a8f878dd99a5e.webp b/fluxer_static/badges/a86a8f878dd99a5e.webp
new file mode 100644
index 000000000..106b418a1
Binary files /dev/null and b/fluxer_static/badges/a86a8f878dd99a5e.webp differ
diff --git a/fluxer_static/badges/b3e72421da3c396b.png b/fluxer_static/badges/b3e72421da3c396b.png
new file mode 100644
index 000000000..5efb67c73
Binary files /dev/null and b/fluxer_static/badges/b3e72421da3c396b.png differ
diff --git a/fluxer_static/badges/b3e72421da3c396b.webp b/fluxer_static/badges/b3e72421da3c396b.webp
new file mode 100644
index 000000000..17bfbfc18
Binary files /dev/null and b/fluxer_static/badges/b3e72421da3c396b.webp differ
diff --git a/fluxer_static/badges/b58f25b2d2725ad4.png b/fluxer_static/badges/b58f25b2d2725ad4.png
new file mode 100644
index 000000000..c86c17b1d
Binary files /dev/null and b/fluxer_static/badges/b58f25b2d2725ad4.png differ
diff --git a/fluxer_static/badges/b58f25b2d2725ad4.webp b/fluxer_static/badges/b58f25b2d2725ad4.webp
new file mode 100644
index 000000000..d8fbd50e7
Binary files /dev/null and b/fluxer_static/badges/b58f25b2d2725ad4.webp differ
diff --git a/fluxer_static/badges/bd36eed73a899545.png b/fluxer_static/badges/bd36eed73a899545.png
new file mode 100644
index 000000000..0c206c123
Binary files /dev/null and b/fluxer_static/badges/bd36eed73a899545.png differ
diff --git a/fluxer_static/badges/bd36eed73a899545.webp b/fluxer_static/badges/bd36eed73a899545.webp
new file mode 100644
index 000000000..351ec00ba
Binary files /dev/null and b/fluxer_static/badges/bd36eed73a899545.webp differ
diff --git a/fluxer_static/badges/c61a26d1f983369c.png b/fluxer_static/badges/c61a26d1f983369c.png
new file mode 100644
index 000000000..862555e9b
Binary files /dev/null and b/fluxer_static/badges/c61a26d1f983369c.png differ
diff --git a/fluxer_static/badges/c61a26d1f983369c.webp b/fluxer_static/badges/c61a26d1f983369c.webp
new file mode 100644
index 000000000..d374ca631
Binary files /dev/null and b/fluxer_static/badges/c61a26d1f983369c.webp differ
diff --git a/fluxer_static/badges/c78ee3cafcb561fb.png b/fluxer_static/badges/c78ee3cafcb561fb.png
new file mode 100644
index 000000000..5d323b50e
Binary files /dev/null and b/fluxer_static/badges/c78ee3cafcb561fb.png differ
diff --git a/fluxer_static/badges/c78ee3cafcb561fb.webp b/fluxer_static/badges/c78ee3cafcb561fb.webp
new file mode 100644
index 000000000..9b0970c29
Binary files /dev/null and b/fluxer_static/badges/c78ee3cafcb561fb.webp differ