I use something like this in my app.yaml:
- url: /images/[0-9]*/(.*\.(jpg|png))
static_files: static/images/current/\1
upload: static/images/current/(.*\.(jpg|png))
This matches /images/[any number]/something.jpg to
static/images/current/something.jpg
Then in my templates I substitute the [any number] part for the apps current
version number ( os.environ.get('CURRENT_VERSION_ID', '0').split('.')[0] ).
So if I change my version number everything is re-cached.
You can also just append a query parameter to files to defeat caching. (
'/images/current/something.jpg?v=1' )
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.