[Rt-commit] r7836 - in rt/branches/3.7-EXPERIMENTAL/html/NoAuth:
css js
clkao at bestpractical.com
clkao at bestpractical.com
Sat May 12 06:18:54 EDT 2007
Author: clkao
Date: Sat May 12 06:18:32 2007
New Revision: 7836
Modified:
rt/branches/3.7-EXPERIMENTAL/html/NoAuth/css/autohandler
rt/branches/3.7-EXPERIMENTAL/html/NoAuth/images/autohandler
rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/autohandler
Log:
Merge from 3.6-RELEASE:
r5571: jesse | 2006-07-18 00:40:48 +0800
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.7-EXPERIMENTAL/html/NoAuth/css/autohandler
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/NoAuth/css/autohandler (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/NoAuth/css/autohandler Sat May 12 06:18:32 2007
@@ -46,6 +46,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<%init>
+RT::Interface::Web::StaticFileHeaders();
$r->content_type('text/css');
$m->call_next();
return();
Modified: rt/branches/3.7-EXPERIMENTAL/html/NoAuth/images/autohandler
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/NoAuth/images/autohandler (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/NoAuth/images/autohandler Sat May 12 06:18:32 2007
@@ -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.7-EXPERIMENTAL/html/NoAuth/js/autohandler
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/autohandler (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/autohandler Sat May 12 06:18:32 2007
@@ -46,6 +46,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