Set far future Expires only for fingerprinted files
This commit is contained in:
parent
1a9f984b58
commit
1774e6d571
|
@ -138,9 +138,10 @@ class Travis::Web::App
|
||||||
end
|
end
|
||||||
|
|
||||||
def expires(file)
|
def expires(file)
|
||||||
case path_for(file)
|
if fingerprinted?(file)
|
||||||
when '/' then '0'
|
(server_start + age).httpdate
|
||||||
else (server_start + age).httpdate
|
else
|
||||||
|
'0'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user