[Bps-public-commit] RT-Extension-Nginx branch, master, updated. 9569fcd0267b3f656ace0995b0425bd8d73a241b
Ruslan Zakirov
ruz at bestpractical.com
Tue Nov 22 18:31:01 EST 2011
The branch, master has been updated
via 9569fcd0267b3f656ace0995b0425bd8d73a241b (commit)
via 1eacac835579b919524e507a22090705fc1dcfba (commit)
from fb3d091f254be4cd805297202a952753119a787d (commit)
Summary of changes:
CHANGES | 9 +++++++++
MANIFEST | 1 +
META.yml | 2 +-
etc/rt.server.conf | 10 ++++++++++
lib/RT/Extension/Nginx.pm | 2 +-
5 files changed, 22 insertions(+), 2 deletions(-)
create mode 100644 CHANGES
- Log -----------------------------------------------------------------
commit 1eacac835579b919524e507a22090705fc1dcfba
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Wed Nov 23 03:27:19 2011 +0400
set expiration dates on static content
diff --git a/CHANGES b/CHANGES
new file mode 100644
index 0000000..704bdad
--- /dev/null
+++ b/CHANGES
@@ -0,0 +1,9 @@
+0.02 2011-11-22
+
+ * set 10 years expiration date on squished content (CSS and JS)
+ * set 1 month expiration date on other static things
+
+0.01 2011-11-21
+
+ * initial release
+
diff --git a/MANIFEST b/MANIFEST
index 20e308b..4512827 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,3 +1,4 @@
+CHANGES
etc/fcgi.include.conf
etc/mime.types
etc/nginx.conf
diff --git a/etc/rt.server.conf b/etc/rt.server.conf
index 3138e74..4d1f212 100644
--- a/etc/rt.server.conf
+++ b/etc/rt.server.conf
@@ -23,21 +23,31 @@ server {
share/html$uri
@main
;
+ expires 1M;
}
location <% RT->Config->Get('WebPath') %>/NoAuth/css/ {
root <% $stash{fcgi_storage} %>;
gzip_comp_level 9;
+ expires 1M;
+ location ~ squished {
+ expires max;
+ }
error_page 404 = @fetch_and_store;
}
location <% RT->Config->Get('WebPath') %>/NoAuth/js/ {
root <% $stash{fcgi_storage} %>;
gzip_comp_level 9;
+ expires 1M;
+ location ~ squished {
+ expires max;
+ }
error_page 404 = @fetch_and_store;
}
location <% RT->Config->Get('WebPath') %>/NoAuth/RichText/ {
root <% $stash{fcgi_storage} %>;
gzip_comp_level 9;
error_page 404 = @fetch_and_store;
+ expires 1M;
}
location <% RT->Config->Get('WebPath') %>/ {
include <% $stash{nginx_root} %>/fcgi.include.conf;
commit 9569fcd0267b3f656ace0995b0425bd8d73a241b
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Wed Nov 23 03:30:13 2011 +0400
bump version, 0.02
diff --git a/META.yml b/META.yml
index 73b1709..d0d379e 100644
--- a/META.yml
+++ b/META.yml
@@ -27,4 +27,4 @@ requires:
perl: 5.8.3
resources:
license: http://dev.perl.org/licenses/
-version: 0.01
+version: 0.02
diff --git a/lib/RT/Extension/Nginx.pm b/lib/RT/Extension/Nginx.pm
index 3aaf340..462303b 100644
--- a/lib/RT/Extension/Nginx.pm
+++ b/lib/RT/Extension/Nginx.pm
@@ -4,7 +4,7 @@ use warnings;
package RT::Extension::Nginx;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use File::Spec;
use File::Path qw(make_path);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list