github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2017-02-24 10:51 am

[dreamwidth/dw-free] f443ce: [#2003] also use error header for Cache-Control

Branch: refs/heads/release-1.32
Home: https://github.com/dreamwidth/dw-free
Commit: f443ce45af34b61409a5b3099ece530652cbf60e
https://github.com/dreamwidth/dw-free/commit/f443ce45af34b61409a5b3099ece530652cbf60e
Author: Kareila <kareila@dreamwidth.org>
Date: 2017-02-24 (Fri, 24 Feb 2017)

Changed paths:
M cgi-bin/DW/Controller.pm

Log Message:
-----------
[#2003] also use error header for Cache-Control

@alierak explains that there are two header tables, one
for successes (which header_out uses) and one for errors
and redirects (which err_header_out uses). So we need to
make sure that user cookie bounces use err_header_out to
avoid caching.

He says we could probably set this header on every request,
but let's start with the one place where we know we need it.

(Most of this is whitespace cleanup; the last line is the
bit that does the thing.)


Commit: 1d34018a37d8653db5123fe1200bc9d985de6283
https://github.com/dreamwidth/dw-free/commit/1d34018a37d8653db5123fe1200bc9d985de6283
Author: Kareila <kareila@dreamwidth.org>
Date: 2017-02-24 (Fri, 24 Feb 2017)

Changed paths:
M cgi-bin/DW/Controller/Media.pm

Log Message:
-----------
also use no-cache for image load 403 errors


Compare: https://github.com/dreamwidth/dw-free/compare/861a018829ee...1d34018a37d8