[Rt-commit] r5571 - in rt/branches/3.6-RELEASE: . html/NoAuth
html/NoAuth/css html/NoAuth/images
jesse at bestpractical.com
jesse at bestpractical.com
Mon Jul 17 12:40:50 EDT 2006
Author: jesse
Date: Mon Jul 17 12:40:48 2006
New Revision: 5571
Removed:
rt/branches/3.6-RELEASE/html/NoAuth/ahah.js
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/html/NoAuth/css/autohandler
rt/branches/3.6-RELEASE/html/NoAuth/images/autohandler
rt/branches/3.6-RELEASE/html/NoAuth/js/autohandler
Log:
r14052 at pinglin: jesse | 2006-07-17 11:23:30 -0400
* Started generating better caching headers for css, image and js files
Modified: rt/branches/3.6-RELEASE/html/NoAuth/css/autohandler
==============================================================================
--- rt/branches/3.6-RELEASE/html/NoAuth/css/autohandler (original)
+++ rt/branches/3.6-RELEASE/html/NoAuth/css/autohandler Mon Jul 17 12:40:48 2006
@@ -44,6 +44,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<%init>
+RT::Interface::Web::StaticFileHeaders();
$r->content_type('text/css');
my @DoW = qw(Sun Mon Tue Wed Thu Fri Sat);
Modified: rt/branches/3.6-RELEASE/html/NoAuth/images/autohandler
==============================================================================
--- rt/branches/3.6-RELEASE/html/NoAuth/images/autohandler (original)
+++ rt/branches/3.6-RELEASE/html/NoAuth/images/autohandler Mon Jul 17 12:40:48 2006
@@ -1,11 +1,12 @@
<%INIT>
+&RT::Interface::Web::StaticFileHeaders();
# This autohandler will spit out RT's images if the user hasn't
# properly configured their webserver to stop RT from passing
# images through the mason handler.
-
my $file = $m->base_comp->source_file;
+
my $type = "application/octet-stream";
if ($file =~ /\.(gif|png|jpe?g)$/i) {
$type = "image/$1";
Modified: rt/branches/3.6-RELEASE/html/NoAuth/js/autohandler
==============================================================================
--- rt/branches/3.6-RELEASE/html/NoAuth/js/autohandler (original)
+++ rt/branches/3.6-RELEASE/html/NoAuth/js/autohandler Mon Jul 17 12:40:48 2006
@@ -44,6 +44,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<%init>
+&RT::Interface::Web::StaticFileHeaders();
$r->content_type('application/x-javascript');
$m->call_next();
return();
More information about the Rt-commit
mailing list