Add proper cache control headers to .nocache.(js|html) files

You will need to enable the apache headers mod: sudo a2enmod headers

Signed-off-by: James Ren <[email protected]>

--- autotest/apache/conf/all-directives 2010-04-13 18:09:02.000000000 -0700
+++ autotest/apache/conf/all-directives 2010-04-13 18:09:02.000000000 -0700
@@ -2,6 +2,7 @@
 # This does not include stuff like proxy-directives and some of the files here
 # include other directive files.
 
+Include "/usr/local/autotest/apache/conf/gwt-directives"
 Include "/usr/local/autotest/apache/conf/django-directives"
 Include "/usr/local/autotest/apache/conf/afe-directives"
 Include "/usr/local/autotest/apache/conf/tko-directives"
--- /dev/null   2009-12-17 12:29:38.000000000 -0800
+++ autotest/apache/conf/gwt-directives 2010-04-13 18:09:02.000000000 -0700
@@ -0,0 +1,5 @@
+<FilesMatch "\.nocache\.(js|html)">
+    <IfModule mod_headers.c>
+        Header set Cache-Control "no-cache, must-revalidate"
+    </IfModule>
+</FilesMatch>
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to