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:46 am

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

Branch: refs/heads/develop
Home: https://github.com/dreamwidth/dw-free
Commit: e31ba34c645c9967594e70615a8a0d00fdb587ae
https://github.com/dreamwidth/dw-free/commit/e31ba34c645c9967594e70615a8a0d00fdb587ae
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: ede6a2b9a5fe87800aa18978e2f4b5127d710449
https://github.com/dreamwidth/dw-free/commit/ede6a2b9a5fe87800aa18978e2f4b5127d710449
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


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

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

Log Message:
-----------
Merge pull request #2007 from kareila/cache-control

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


Compare: https://github.com/dreamwidth/dw-free/compare/8410894ea119...24b20fce013b