- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 26 Feb 2009 10:41:27 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/servlet
In directory hutz:/tmp/cvs-serv14164
Modified Files:
CssValidator.java
Log Message:
added Vary header
Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/servlet/CssValidator.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- CssValidator.java 16 Feb 2009 16:42:14 -0000 1.41
+++ CssValidator.java 26 Feb 2009 10:41:25 -0000 1.42
@@ -743,8 +743,9 @@
* @param output
* @throws MimeTypeFormatException
*/
- private void buildHeader(ApplContext ac, HttpServletResponse res, String output) {
-
+ private void buildHeader(ApplContext ac, HttpServletResponse res,
+ String output)
+ {
// I don't want cache for the response (inhibits proxy)
res.setHeader("Pragma", "no-cache"); // @@deprecated
res.setHeader("Cache-Control", "no-cache");
@@ -807,6 +808,7 @@
res.setHeader("Content-Language", "en");
res.setHeader("charset", Utf8Properties.ENCODING);
}
+ res.setHeader("Vary", "Accept-Language");
}
private void handleError(HttpServletResponse res, ApplContext ac,
Received on Thursday, 26 February 2009 10:41:35 UTC