English 中文(简体)
Google App Engine: localhost browser caching?
原标题:

I m developing with GAE on my own machine. It was pretty fast, until I added CSS and images, at which point the page loads much more slowly. I suspect that the browser isn t caching anything, perhaps because GAE isn t setting any far-future expiration headers in the HTTP request. Is there anything I can do to get around this?

I tried this, but it doesn t seem to work:

self.response.headers[ Expires ] = "10 Dec 2020 20:00:00 GMT"

Adding this to app.yaml works better:

default_expiration: "100d"
最佳回答

Have you tried setting caching options for static files?

问题回答

暂无回答




相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签