[From nobody Tue May 26 11:17:14 2026
Received: (at submit) by bugs.debian.org; 5 May 2015 15:33:35 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-7.4 required=4.0 tests=BAYES_00,CT_IMAGE,
 DIGITS_LETTERS,FOURLA,HAS_PACKAGE,T_RP_MATCHES_RCVD autolearn=ham
 autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 41; hammy, 150; neutral, 199; spammy,
 0. spammytokens: hammytokens:0.000-+--H*UA:31.6.0,
 0.000-+--H*u:31.6.0, 
 0.000-+--Severity, 0.000-+--H*UA:31.0, 0.000-+--H*u:31.0
Return-path: &lt;max@tcen.ru&gt;
Received: from bob.tcen.ru ([82.179.177.222])
 by buxtehude.debian.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256)
 (Exim 4.80) (envelope-from &lt;max@tcen.ru&gt;) id 1Ypeqk-0007Zh-K7
 for submit@bugs.debian.org; Tue, 05 May 2015 15:33:35 +0000
Received: from [10.254.101.10] (host-10.vpn.tcen.ru [10.254.101.10] (may be
 forged))
 by bob.tcen.ru (8.14.3/8.14.3/Debian-9.4) with ESMTP id t45FXNMi012074
 for &lt;submit@bugs.debian.org&gt;; Tue, 5 May 2015 19:33:24 +0400
Message-ID: &lt;5548E2B9.8060008@tcen.ru&gt;
Date: Tue, 05 May 2015 18:33:13 +0300
From: Max Kosmach &lt;max@tcen.ru&gt;
Organization: tcen
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
 rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: submit@bugs.debian.org
Subject: static content does not cached
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org

Package: request-tracker4
Version: 4.2.8-3
Severity: normal


As far as I can see static content does not cached with current RT version.

For example:
Request
GET /rt/static/images/bpslogo.png HTTP/1.1.
Host: sd.
Connection: keep-alive.
Cache-Control: max-age=0.
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8.
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36.
Accept-Encoding: gzip, deflate, sdch.
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4.
Cookie: RT_SID_SD.80=374bd4e2b9927222e1eeabb10bfe0a51.
If-Modified-Since: Tue, 05 May 2015 14:55:14 GMT.

Response
HTTP/1.1 200 OK.
Date: Tue, 05 May 2015 15:07:09 GMT.
Server: Apache/2.4.10 (Debian).
Last-Modified: Tue, 05 May 2015 14:55:10 GMT.
Expires: Thu, 04 Jun 2015 14:44:17 GMT.
Cache-Control: max-age=2592000, public.
Content-Length: 2656.
Keep-Alive: timeout=5, max=100.
Connection: Keep-Alive.
Content-Type: image/png.


I think that response should be &quot;304 Not modified&quot; insead of &quot;200 OK&quot;.

Apache config below (default fastcgi example + kerberos auth):

FastCgiServer /usr/share/request-tracker4/libexec/rt-server.fcgi -initial-env RT_SITE_CONFIG=/etc/request-tracker4/RT_SiteConfig.pm

ScriptAlias /rt /usr/share/request-tracker4/libexec/rt-server.fcgi

&lt;Location /rt/&gt;
  DirectoryIndex index.html

   AuthType Kerberos
   AuthName &quot;RT4&quot;
   KrbMethodNegotiate on
   KrbMethodK5Passwd off
   KrbAuthRealms TEST.INT
   KrbVerifyKDC on
   Krb5Keytab /etc/apache2/http.keytab
   KrbLocalUserMapping On

   require valid-user

&lt;/Location&gt;
&lt;Location /rt/REST/1.0/NoAuth&gt;
     &lt;IfVersion &gt;= 2.3&gt;
         Require local
     &lt;/IfVersion&gt;
     &lt;IfVersion &lt; 2.3&gt;
         Order Allow,Deny
         Allow from 127.0.0.1
     &lt;/IfVersion&gt;
&lt;/Location&gt;

Installed apache modules:
apache2 -M
Loaded Modules:
  core_module (static)
  so_module (static)
  watchdog_module (static)
  http_module (static)
  log_config_module (static)
  logio_module (static)
  version_module (static)
  unixd_module (static)
  access_compat_module (shared)
  alias_module (shared)
  auth_basic_module (shared)
  auth_kerb_module (shared)
  authn_core_module (shared)
  authn_file_module (shared)
  authz_core_module (shared)
  authz_host_module (shared)
  authz_user_module (shared)
  autoindex_module (shared)
  deflate_module (shared)
  dir_module (shared)
  env_module (shared)
  fastcgi_module (shared)
  filter_module (shared)
  mime_module (shared)
  mpm_event_module (shared)
  negotiation_module (shared)
  setenvif_module (shared)
  status_module (shared)






-- 
With best wishes
Max
]