Caching of (fake) static content which is actually dynamic on GAE for Python

后端 未结 1 807
梦谈多话
梦谈多话 2021-02-08 12:02

In my GAE app I have the following handler in app.yaml:

- url: /lang/strings.js
  script: js_lang.py

So a call to /lang/strings.js

相关标签:
1条回答
  • 2021-02-08 12:43

    Have a look at Static serving blog post by Nick.

    There's everything you need to know about Conditional request and how to properly get and set the correct HTTP headers:

    • Http Request header handling (If-Modified-Since,If-None-Match)
    • Http Response headers handling (Last-Modified, ETag)
    0 讨论(0)
提交回复
热议问题