copr: do not cache logs and repodata in CloudFront
This commit is contained in:
parent
fa78bc5192
commit
c35ebbd949
2 changed files with 10 additions and 0 deletions
|
@ -499,5 +499,10 @@ $HTTP["url"] !~ "^/archive/spacewalk($|/)" {
|
||||||
|
|
||||||
# https://pagure.io/copr/copr/issue/762
|
# https://pagure.io/copr/copr/issue/762
|
||||||
$HTTP["url"] =~ "\.log$" {
|
$HTTP["url"] =~ "\.log$" {
|
||||||
|
setenv.add-response-header = ( "Cache-Control" => "no-store")
|
||||||
mimetype.assign = ("" => "text/plain; charset=utf-8" )
|
mimetype.assign = ("" => "text/plain; charset=utf-8" )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$HTTP["url"] =~ "/repodata/*" {
|
||||||
|
setenv.add-response-header = ( "Cache-Control" => "no-cache")
|
||||||
|
}
|
||||||
|
|
|
@ -506,9 +506,14 @@ $HTTP["url"] =~ "\.log\.gz$" {
|
||||||
|
|
||||||
# https://pagure.io/copr/copr/issue/762
|
# https://pagure.io/copr/copr/issue/762
|
||||||
$HTTP["url"] =~ "\.log$" {
|
$HTTP["url"] =~ "\.log$" {
|
||||||
|
setenv.add-response-header = ( "Cache-Control" => "no-store")
|
||||||
mimetype.assign = ("" => "text/plain; charset=utf-8" )
|
mimetype.assign = ("" => "text/plain; charset=utf-8" )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$HTTP["url"] =~ "/repodata/*" {
|
||||||
|
setenv.add-response-header = ( "Cache-Control" => "no-cache")
|
||||||
|
}
|
||||||
|
|
||||||
url.redirect = (
|
url.redirect = (
|
||||||
"^/results/(.*)/(.*)/mageia-(.*)-i386(.*)" => "/results/$1/$2/mageia-$3-i586$4",
|
"^/results/(.*)/(.*)/mageia-(.*)-i386(.*)" => "/results/$1/$2/mageia-$3-i586$4",
|
||||||
"^/(.*)/redirect-live.log$" => "/$1/builder-live.log.gz"
|
"^/(.*)/redirect-live.log$" => "/$1/builder-live.log.gz"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue