google app engine - Proper headers for pseudo static JavaScript file -


i have python 2.7 app on google appengine. 1 of js files served via python script, not standard static handler. app.yaml config shown below:

- url: /js/foo.js   script: python.js.write_javascript.app   secure: optional 

the request foo.js part of code snippet clients, of our service, place on website, can't updated. python.js.write_javascript.app reads in js template file, substitutes in few customer specific values , prints browser.

what i'm wondering is, how set correct headers request cached correctly. without custom headers, appengine's default tell browser never cache this. undesirable because creates unnecessary load on our app.

ideally, have browsers make new request when template has been updated. option cache per session.

thanks

well

it looks google handles automatically. print it, using correct javascript headers without cache headers , google's cdn caches me. i'm not sure default cache lifetime saw no increase in instances or cost implementing this.

it seems google takes care of me.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -