Skip to content

Commit

Permalink
Add a Vary Fastly-SSL
Browse files Browse the repository at this point in the history
so that caches will not re-use http responses
in https requests, because that breaks zypper/libcurl
which does not allow downgrades in redirects.
  • Loading branch information
bmwiedemann authored and andrii-suse committed Oct 31, 2023
1 parent 83c5ff6 commit b67c4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MirrorCache/WebAPI/Plugin/RenderFileFromMirror.pm
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ sub register {
return undef;
}
$c->log->error($c->dumper('RENDER FILE_ID', $file->{id})) if $MCDEBUG;
$c->res->headers->vary('Accept, COUNTRY, X-COUNTRY');
$c->res->headers->vary('Accept, COUNTRY, X-COUNTRY, Fastly-SSL');
my $baseurl; # just hostname + eventual urldir (without folder and file)
my $fullurl; # baseurl with path and filename
if ($dm->metalink || $dm->meta4 || $dm->torrent || $dm->zsync || $dm->magnet) {
Expand Down

0 comments on commit b67c4b5

Please sign in to comment.