[Rt-commit] rt branch, squish-refactor, updated. rt-3.9.7-887-g41bcc7b
Thomas Sibley
trs at bestpractical.com
Mon Dec 20 11:25:42 EST 2010
The branch, squish-refactor has been updated
via 41bcc7baf5319981676f323dc563a463c5030e6e (commit)
from e3fd940616ee33348182b3c05d7961a1bf83517a (commit)
Summary of changes:
share/html/NoAuth/css/dhandler | 3 ++-
share/html/NoAuth/js/dhandler | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 41bcc7baf5319981676f323dc563a463c5030e6e
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Dec 20 11:24:41 2010 -0500
Don't send Last-Modified since we don't handle If-Modified-Since
Since we're telling the browser to heavily cache the file and changing
the filename when content changes, the Last-Modified isn't really
necessary anyway.
diff --git a/share/html/NoAuth/css/dhandler b/share/html/NoAuth/css/dhandler
index 64050a5..c3a885c 100644
--- a/share/html/NoAuth/css/dhandler
+++ b/share/html/NoAuth/css/dhandler
@@ -53,7 +53,8 @@ my $arg = $m->dhandler_arg;
if ( $arg =~ m{(.*)/main-squished-(?:[0-9a-f]{32})\.css$} ) {
my $name = $1;
my $squished = RT::Interface::Web::SquishedCSS( Name => $name );
- $r->header_out( 'Last-Modified' => $squished->ModifiedTimeString );
+ # Don't send Last-Modified since we don't handle If-Modified-Since
+ #$r->header_out( 'Last-Modified' => $squished->ModifiedTimeString );
$m->out( $squished->Content );
}
else {
diff --git a/share/html/NoAuth/js/dhandler b/share/html/NoAuth/js/dhandler
index 2a65051..884d1f9 100644
--- a/share/html/NoAuth/js/dhandler
+++ b/share/html/NoAuth/js/dhandler
@@ -55,7 +55,8 @@ if ( $arg =~ m{squished-(.+)-([a-z0-9]{32})\.js$} ) {
my $name = $1;
my $squished = RT::Interface::Web::SquishedJS( Name => $name );
- $r->header_out( 'Last-Modified' => $squished->ModifiedTimeString );
+ # Don't send Last-Modified since we don't handle If-Modified-Since
+ #$r->header_out( 'Last-Modified' => $squished->ModifiedTimeString );
$m->out( $squished->Content );
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list