GAE: file_get_contents() and static files

前端 未结 1 756
醉话见心
醉话见心 2020-12-22 06:33

Instead of updating the same variable in various locations I parse files and extract the bits I need. One bit I am looking for is the cache name in my service-worker.js file

相关标签:
1条回答
  • 2020-12-22 07:29

    You need to also configure application_readable: true in addition to the static file declaration in your app.yaml file.

    From Handlers element:

    application_readable

    Optional. Boolean. By default, files declared in static file handlers are uploaded as static data and are only served to end users. They cannot be read by an application. If this field is set to true, the files are also uploaded as code data so your application can read them. Both uploads are charged against your code and static data storage resource quotas.

    0 讨论(0)
提交回复
热议问题