You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently ran into this in production. If you like the fix, I can put together a pull request, though it's just a couple of lines. I had to add cache control headers to the response to prevent the great IE9 from caching ajax requests.
I recently ran into this in production. If you like the fix, I can put together a pull request, though it's just a couple of lines. I had to add cache control headers to the response to prevent the great IE9 from caching ajax requests.
class RestResource(RestResource):
...
def response(self, data):
kwargs = {} if request.is_xhr else {"indent": 2}
resp = Response(json.dumps(data, **kwargs), mimetype="application/json")
resp.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
resp.headers["Pragma"] = "no-cache"
resp.headers["Expires"] = 0
return resp
The text was updated successfully, but these errors were encountered: