commit: f55cf260fd4a03f071307192e380ca6303af6c03
parent 5b63a7dd50fea3962a91e0626c8d0cd9e32fd010
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 13 Jul 2020 23:00:16 +0200
Add serial=\d{10} parameter for immutable caching
As implemented in nginx with the following:
location / {
if ($arg_serial ~ "[0-9]{10}") {
more_set_headers 'Cache-Control: public, max-age=31536000, immutable';
}
}
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/articles/linux-audio-output.xhtml b/articles/linux-audio-output.xhtml
@@ -2,7 +2,7 @@
<a href="/articles/linux-audio-output"><h1>Linux Audio Output APIs</h1></a>
<p>About a month ago I took a long afternoon being like "Okay whatever let's see how deep the rabbit hole of linux audio playback goes" (<a href="https://queer.hacktivis.me/objects/33fc99e9-c901-4764-8b75-27d78bf7cc7d">previously</a>, <a href="https://queer.hacktivis.me/objects/3a5e4919-e8ee-4e4c-b50c-899f4afac678">previously</a>). That was a mistake I guess but let's at least avoid others from doing the same and so share what I did as it's fairly complete (patches with reference/citations welcome btw).</p>
<p>I consider here as an Audio Output API any reused code which takes a PCM audio stream as input and which is designed to end up to the sound card at some point. In a simple system there should just be some decoders and cross-platform librairies going to the system native API (ones which are nicely desgined being SunAudio and Plan9 audio).</p>
-<figure><img loading="lazy" title="Linux Audio Output APIs" src="/images/linux-audio-output.svg" /></figure>
+<figure><img loading="lazy" title="Linux Audio Output APIs" src="/images/linux-audio-output.svg?serial=2020063001" /></figure>
<p>You'll definitely need a large screen if you want to see the whole thing at once.</p>
<h2>Other formats</h2>
<ul>
diff --git a/templates/head.shtml b/templates/head.shtml
@@ -1,5 +1,5 @@
<meta charset="utf-8"/>
- <link rel="stylesheet" type="text/css" href="/css/index.css"/>
+ <link rel="stylesheet" type="text/css" href="/css/index.css?serial=2020071301"/>
<link rel="vcs-git" href="https://gitlab.com/lanodan/blog.git" title="gitlab" />
<link rel="pgpkey" href="/key.asc"/>
<link rel="icon" type="text/css" href="/images/favicon.png"/>