How do I add Vary:Accept-Encoding header ?

405 views
Skip to first unread message

Anjanesh

unread,
Jan 8, 2011, 1:04:51 AM1/8/11
to gs-dis...@googlegroups.com
For some Vary:Accept-Encoding header never gets returned even though I've included it as a header argument in gsutil.

gsutil -h "Vary:Accept-Encoding" -h "Cache-Control:public,max-age=31536000" -h "Content-Type: text/css" cp -z css -a public-read style.css gs://[bucket-name]/style.css

If I check the response headers, theres no Vary:Accept-Encoding

Cache-Control: public,max-age=31536000
Etag: "6d28ea6208df5afaa12320fe9fb7dd90"
Content-Type: text/css
Content-Encoding: gzip
Content-Length: 7750
Date: Sat, 08 Jan 2011 05:30:22 GMT
X-Content-Type-Options: nosniff
x-frame-options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE

200 OK

Jerjou Cheng

unread,
Jan 10, 2011, 1:48:01 PM1/10/11
to gs-dis...@googlegroups.com
Hello-

Google Storage only recognizes a limited subset of http headers:


which doesn't include 'Vary'.

Cheers,
-Jerjou

--
You received this message because you are subscribed to the Google Groups "Google Storage for Developers" group.
To post to this group, send email to gs-dis...@googlegroups.com.
To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.



--
Developer Programs Engineer
Google Storage

Anjanesh

unread,
Jan 12, 2011, 9:07:13 AM1/12/11
to gs-dis...@googlegroups.com
It would be nice to include this header so that the page-speed score goes ups a point.
Reply all
Reply to author
Forward
0 new messages