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?
From the docs, just add the http_headers for the handlers you need in app.yaml (for Python):
- url: /static
static_dir: static
http_headers:
Vary: Accept-Encoding
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With