Commit Graph

206860 Commits

Author SHA1 Message Date
aszlig
ccf55bead1
nginx: Clear Last-Modified if ETag is from store
This is what I've suspected a while ago[1]:

> Heads-up everyone: After testing this in a few production instances,
> it seems that some browsers still get cache hits for new store paths
> (and changed contents) for some reason. I highly suspect that it might
> be due to the last-modified header (as mentioned in [2]).
>
> Going to test this with last-modified disabled for a little while and
> if this is the case I think we should improve that patch by disabling
> last-modified if serving from a store path.

Much earlier[2] when I reviewed the patch, I wrote this:

> Other than that, it looks good to me.
>
> However, I'm not sure what we should do with Last-Modified header.
> From RFC 2616, section 13.3.4:
>
> - If both an entity tag and a Last-Modified value have been
>   provided by the origin server, SHOULD use both validators in
>   cache-conditional requests. This allows both HTTP/1.0 and
>   HTTP/1.1 caches to respond appropriately.
>
> I'm a bit nervous about the SHOULD here, as user agents in the wild
> could possibly just use Last-Modified and use the cached content
> instead.

Unfortunately, I didn't pursue this any further back then because
@pbogdan noted[3] the following:

> Hmm, could they (assuming they are conforming):
>
>  * If an entity tag has been provided by the origin server, MUST
>    use that entity tag in any cache-conditional request (using If-
>    Match or If-None-Match).

Since running with this patch in some deployments, I found that both
Firefox and Chrome/Chromium do NOT re-validate against the ETag if the
Last-Modified header is still the same.

So I wrote a small NixOS VM test with Geckodriver to have a test case
which is closer to the real world and I indeed was able to reproduce
this.

Whether this is actually a bug in Chrome or Firefox is an entirely
different issue and even IF it is the fault of the browsers and it is
fixed at some point, we'd still need to handle this for older browser
versions.

Apart from clearing the header, I also recreated the patch by using a
plain "git diff" with a small description on top. This should make it
easier for future authors to work on that patch.

[1]: https://github.com/NixOS/nixpkgs/pull/48337#issuecomment-495072764
[2]: https://github.com/NixOS/nixpkgs/pull/48337#issuecomment-451644084
[3]: https://github.com/NixOS/nixpkgs/pull/48337#issuecomment-451646135

Signed-off-by: aszlig <aszlig@nix.build>
2019-12-30 14:30:36 +01:00
Maximilian Bosch
646c641358
Merge pull request #76578 from xwvvvvwx/wireguard-tools-1.0.20191226
wireguard-tools 1.0.20191226 / wireguard 0.0.20191226
2019-12-30 12:22:37 +01:00
Jonathan Ringer
4c28daa093 gitless: use python3 2019-12-30 09:45:37 +01:00
Vladyslav M
9ac2382e2a
ffsend: 0.2.57 -> 0.2.58 (#76675)
ffsend: 0.2.57 -> 0.2.58
2019-12-30 10:33:39 +02:00
Mario Rodas
e1ee43f514 pythonPackages.grpcio-tools: 1.25.0 -> 1.26.0 2019-12-29 20:08:09 -08:00
Mario Rodas
d0a5c6030e grpc: 1.25.0 -> 1.26.0
Changelog: https://github.com/grpc/grpc/releases/tag/v1.26.0
2019-12-29 20:08:09 -08:00
Maximilian Bosch
975a6b7b1d mautrix-telegram: mark as broken on darwin
Tests currently fail like this:

```
/nix/store/yslk7x7iw3hka6d33kmnba9sxaia4492-python3.7-mautrix-0.4.0/lib/python3.7/site-packages/mautrix/util/manhole.py:9: in <module>
    from socket import SOL_SOCKET, SO_PEERCRED
E   ImportError: cannot import name 'SO_PEERCRED' from 'socket' (/nix/store/81qani7sdir46gjwf3a3jr2cv1aggkz1-python3-3.7.5/lib/python3.7/socket.py)
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 1.73s ===============================
```

Those values don't seem to be available on the MacOS-version of that
module. As there's no workaround implemented in the source, I assume
that upstream doesn't intend to support darwin-alike platforms atm.
2019-12-29 19:56:05 -08:00
Maximilian Bosch
95ee079ae6 mautrix-telegram: 0.6.1 -> 0.7.0
https://github.com/tulir/mautrix-telegram/releases/tag/v0.7.0
https://github.com/tulir/mautrix-telegram/releases/tag/v0.7.0-rc4
https://github.com/tulir/mautrix-telegram/releases/tag/v0.7.0-rc3
https://github.com/tulir/mautrix-telegram/releases/tag/v0.7.0-rc2
https://github.com/tulir/mautrix-telegram/releases/tag/v0.7.0-rc1
2019-12-29 19:56:05 -08:00
Maximilian Bosch
298b3fb0a5 python3Packages.mautrix: 0.3.11 -> 0.4.0
Previously known as `mautrix-appservice`. For backwards-compatibility, I
added an alias in `python-packages.nix`.

Additionally a small patch was needed which I already filed upstream[1].

Please note that the package switched from a MIT license to the Mozilla
Public License[2].

[1] https://github.com/tulir/mautrix-python/pull/13
[2] https://github.com/tulir/mautrix-python/blob/v0.4.0/LICENSE
2019-12-29 19:56:05 -08:00
Jan Tojnar
ea4da9b5fa
Merge pull request #76674 from jtojnar/structured-attrs-masterable
treewide: structured-attrs fixes
2019-12-30 04:52:45 +01:00
Robin Gloster
318e1ee4ab
treewide: structured-attrs fixes 2019-12-30 04:50:38 +01:00
Robin Gloster
c9c03c00de
media-player-info: fix build 2019-12-30 04:50:38 +01:00
Robin Gloster
f9268589f8
treewide: structured attrs fixes 2019-12-30 04:50:38 +01:00
Robin Gloster
548aff5a49
meson: fix for structured attrs 2019-12-30 04:50:37 +01:00
Robin Gloster
0f67406076
treewide: installTargets is a list 2019-12-30 04:50:37 +01:00
Robin Gloster
ac8eaa8507
treewide: fix *Flags 2019-12-30 04:50:37 +01:00
Robin Gloster
20b02b80aa
uwimap: fix makeFlags 2019-12-30 04:50:36 +01:00
Robin Gloster
769dfc2bea
treewide: *Flags are lists, part 2 2019-12-30 04:50:36 +01:00
Robin Gloster
9970f29513
treewide: *Flags are lists 2019-12-30 04:50:35 +01:00
B YI
1b20a627d5 clash: init at 0.16.0 (#76572) 2019-12-29 18:18:10 -08:00
Florian Klink
7ef8a85540
Merge pull request #75663 from flokli/certbot-1.0.1
certbot: 0.39.0 -> 1.0.0
2019-12-30 02:22:33 +01:00
Lily Ballard
8e1c6841af ffsend: 0.2.57 -> 0.2.58 2019-12-29 16:59:36 -08:00
Bjørn Forsman
1a9fcf4f34 gnomeExtensions.gsconnect: 27 -> 30 (#76633) 2019-12-30 01:55:14 +01:00
Maximilian Bosch
51e91f0e8b
uutils-coreutils: fix darwin build
https://hydra.nixos.org/build/108523395
2019-12-29 23:45:09 +01:00
R. RyanTM
1d2b233528 metabase: 0.33.6 -> 0.33.7.1 2019-12-29 15:49:22 -06:00
R. RyanTM
3d740ef586 verilator: 4.022 -> 4.024 2019-12-29 15:48:39 -06:00
Daniël de Kok
a8686037c4 resilio-sync: 2.6.3 -> 2.6.4
This release is a hotfix for a WebUI security issue:
https://forum.resilio.com/topic/71647-latest-desktop-build-264/
2019-12-29 15:45:43 -06:00
symphorien+git@xlumurb.eu
18090331d6 monitoring plugins: fix path to sudo and mailq
this fixes check_mailq with postfix at least
2019-12-29 15:45:13 -06:00
Jan Tojnar
9a338f230e
xawtv: clean up
* Remove unnecessary linker and compiler flags
* Listify makeFlags
* Do not use DESTDIR (nasty)
* Let generic builder set --prefix configureFlag
* Install X11 app-defaults to more modern directory
* Format with nixpkgs-fmt
2019-12-29 22:19:18 +01:00
Jan Tojnar
814dcd907f
xbomb: clean up
Use makeFlags instead of patching Makefile
2019-12-29 22:13:56 +01:00
Jan Tojnar
86d3c33475
osm2xmap: clean up
Do not use DESTDIR and bring makeFlags more in line with the Makefile:
a5f9ceadf0/Makefile
2019-12-29 21:57:04 +01:00
Jan Tojnar
0ea38bd65a
libsForQt5.phonon-backend-gstreamer: remove DESTDIR
Originally introduced in 128901e09f,
it no longer appears to be necessary.
2019-12-29 21:31:24 +01:00
Jan Tojnar
db89a2ce38
smu: Do not use DESTDIR
https://github.com/NixOS/nixpkgs/issues/65718
2019-12-29 21:06:02 +01:00
Jan Tojnar
6dcf1a31ae
cadence: Do not use DESTDIR
https://github.com/NixOS/nixpkgs/issues/65718
2019-12-29 21:05:34 +01:00
Alexandre Esteves
be90b35b9e ocamlPackages.conduit: 1.0.0 -> 1.4.0 and dependencies (#74821) 2019-12-29 20:40:36 +01:00
Florian Klink
8456f8211b hass-nabucasa: relax version bounds
upstreamed in https://github.com/NabuCasa/hass-nabucasa/pull/119, but
doesn't appply cleanly
2019-12-29 19:37:27 +01:00
Florian Klink
0aa09d3c75 simpl_le: 0.16.0 -> 0.17.0 2019-12-29 19:30:31 +01:00
Florian Klink
d07796b871 certbot: 0.39.0 -> 1.0.0 2019-12-29 19:30:31 +01:00
Alexandre Esteves
af2eaec41a haskellPackages.multi-ghc-travis: add missing space (PR #76648) 2019-12-29 19:27:25 +01:00
Anderson Torres
fb19fad16c
Merge pull request #76651 from AndersonTorres/update/bochs
Bochs: 2.6.9 -> 2.6.10
2019-12-29 15:23:47 -03:00
AndersonTorres
f560e96a18 Bochs: 2.6.9 -> 2.6.10 2019-12-29 15:21:42 -03:00
Oleksii Filonenko
9b82b11ab6 starship: 0.32.1 -> 0.32.2 2019-12-29 19:13:12 +01:00
Dmitry Kalinkin
4c7a9a0a88
unityhub: switch name to "unityhub"
cc #65391
2019-12-29 10:37:48 -05:00
Doron Behar
5f80b37036 pdfcpu: 0.3 -> 0.3.1 (#76556) 2019-12-29 10:08:42 -05:00
Maximilian Bosch
be1f5be9f3
Merge pull request #76609 from eonpatapon/waybar-0.9.0
Waybar 0.9.0
2019-12-29 14:04:14 +01:00
Jaka Hudoklin
f3cbe205fd
trash-cli: fix listing files over mount points (#76637) 2019-12-29 13:58:03 +01:00
Jaka Hudoklin
3da80f0f7e
Merge pull request #68631 from xtruder/pkgs/rdbtools/init
rdbtools: init at 0.1.14
2019-12-29 11:26:29 +00:00
Gabriel Ebner
0db351fddd
gegl_0_4: add patch for test timeouts (#75773)
gegl_0_4: add patch for test timeouts
2019-12-29 11:39:04 +01:00
Frederik Rietdijk
dcc96b4a84
Merge pull request #76517 from isgy/master
python3Packages.jupyterhub: 0.9.4 -> 1.0.0
2019-12-29 11:11:13 +01:00
Christoph Hrdinka
62534246bf
Merge pull request #76248 from r-ryantm/auto-update/ephemeralpg
ephemeralpg: 2.5 -> 2.9
2019-12-29 11:06:02 +01:00