Bug 75225 - More correct caching headers?!

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1663 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2013-05-28 10:56:25 +00:00
parent a4e617fcc7
commit 58ccb0e5b4
1 changed files with 4 additions and 3 deletions

View File

@ -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} ||= '';