views:

57

answers:

1

Google Page Speed says.

The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header:

for my css and js files.

How can I set google app engine to do this?

A: 

Google App Engine tries to serve compressed content when it can. So you shouldn't have to do anything as long as the client follows the guidelines at the link.

BrennaSoft
`Vary: Accept-Encoding` tells proxies how the resource should be cached. From http://code.google.com/speed/page-speed/docs/caching.html#LeverageProxyCaching - This instructs the proxies to cache two versions of the resource: one compressed, and one uncompressed. The correct version of the resource is delivered based on the client request header.
Kyle
You really don't have any control over how App Engine serves static content. They just do it for you. I think it's pretty safe to assume they're going to follow most of the same best practices they advise for others.
Drew Sears
@drew you do have some control, you can specify browser cache expirations: http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files . And currently they are not setting the `vary: accept-encoding` header as page speed says to.
Kyle