Recently, I've been experimenting with Google's page speed service, and it has inspired me to implement automatic versioning of static files in my GAE/P application. This way, I can fully utilize longer caching times.
Developing a script to perform the following steps seems like a clear solution:
- Generate a hash of the static file contents.
- Update the file name to incorporate the hash.
However, I'm facing a dilemma in terms of altering my app engine templates to automatically reference the new filename. One option is to introduce a marker in my templates and utilize the same script to make the necessary modifications. Yet, I can't help but feel this approach is somewhat unconventional. Is there a more efficient method to achieve this?