Bug 75225 - More correct caching headers?!
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1663 6955db30-a419-402b-8a0d-67ecbb4d7f56custis
parent
551f9fcf5a
commit
9b2227734d
|
@ -30,10 +30,11 @@ if ($ENV{HTTP_IF_MODIFIED_SINCE} && $user_tag eq $req_tag)
|
|||
{
|
||||
Bugzilla->send_header(
|
||||
-etag => $user_tag,
|
||||
-date => time2str($touched),
|
||||
-last_modified => time2str($touched),
|
||||
-status => '304 Not Modified',
|
||||
-type => $ctype,
|
||||
-cache_control => 'must-revalidate',
|
||||
-cache_control => 'private, no-cache, must-revalidate',
|
||||
);
|
||||
exit;
|
||||
}
|
||||
|
@ -41,9 +42,9 @@ if ($ENV{HTTP_IF_MODIFIED_SINCE} && $user_tag eq $req_tag)
|
|||
|
||||
Bugzilla->send_header(
|
||||
-etag => $user_tag,
|
||||
-type => 'text/javascript'.(Bugzilla->params->{utf8} ? '; charset=utf-8' : ''),
|
||||
-type => $ctype,
|
||||
-last_modified => time2str($touched),
|
||||
-cache_control => 'must-revalidate',
|
||||
-cache_control => 'private, no-cache, must-revalidate',
|
||||
);
|
||||
|
||||
$args->{type} ||= '';
|
||||
|
|
Loading…
Reference in New Issue