Index | Thread | Search

From:
Job Snijders <job@bsd.nl>
Subject:
Re: httpd: add cache controls for static files
To:
tech@openbsd.org
Date:
Wed, 13 May 2026 15:36:24 +0000

Download raw body.

Thread
On Wed, May 13, 2026 at 05:33:09PM +0200, Kirill A. Korinsky wrote:
> You missed that it is not just Cache-Control: no-cache, but it actually
> needs to Vary: Accept-Encoding that makes [no] cache-control no-cache not
> that clear I think.
> 
> Next, send-header or add-header is possible approach, but my diff adds it
> out of the box because mtime / Last-Modified for static files makes it safe.

Good points, and I like that your approach does a bunch of sane things
out of the box.

Let's go with 'static-cache-control' like you proposed.