是否可以以编程方式获取当前应用程序版本以用于具有远期过期标头的 url?
例如:
<link rel="stylesheet" href="app.js?v=1.23" />
应自动更新为:
<link rel="stylesheet" href="app.js?v=1.24" />
为此,我需要获取版本。
是否可以以编程方式获取当前应用程序版本以用于具有远期过期标头的 url?
例如:
<link rel="stylesheet" href="app.js?v=1.23" />
应自动更新为:
<link rel="stylesheet" href="app.js?v=1.24" />
为此,我需要获取版本。
来自 [ http://code.google.com/appengine/docs/python/theenvironment.html][1]
from google.appengine.ext import webapp
import os
class PrintEnvironmentHandler(webapp.RequestHandler):
def get(self):
for name in os.environ.keys():
self.response.out.write("%s = %s<br />\n" % (name, os.environ[name]))
[1]: http://code.google.com/appengine/docs/python/theenvironment.html