This is Instant CDN on Google App Engine clone built on Flask with some tweaks and additions. You can contact me at profile page.
This web service will retrieve the resource located on your server, cache it on Google App Engine servers and serve it to your users with smart cache headers. This will provide the following benefits:
Replace all your files urls with:
http://goseethem.appspot.com/c/[unique_path]?url=[file_url]
For example, to cache an image at http://www.google.com/intl/en_ALL/images/logo.gif, use this url:
http://goseethem.appspot.com/c/google/logo.gif?url=http://www.google.com/intl/en_ALL/images/logo.gif
To resize your image, specify a size parameter, i.e:
http://goseethem.appspot.com/c/google/logo.small.gif?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=100x100
Valid values for size parameter:
Size can also be specified in file name, i.e. logo.small__100x100c.gif (note double underscore).
You can use subdomains to avoid collisions with already existed file, i.e.:
http://[subdomain].goseethem.appspot.com/c/google/logo.small.gif?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=100x100
http://goseethem.appspot.com/a/[unique_path]?url=[url]&size=[image_size]
Response:
http://goseethem.appspot.com/s/[unique_path]
Response:
http://goseethem.appspot.com/c/[unique_path]?url=[url]&size=[image_size]
Response:
If size can't be recongized or file is not image nothing happens.