die-net / fotomat

Fast Go-based library and server for resizing JPEG, PNG, GIF, and WebP images.
Apache License 2.0
70 stars 15 forks source link

Add caching of original images and responses #9

Open aaron42net opened 8 years ago

aaron42net commented 8 years ago

Potentially use https://github.com/gregjones/httpcache which has flexible storage options.

aaron42net commented 8 years ago

I implemented httpcache, to the point of writing an LRU in-memory cache implementation (https://github.com/die-net/lrucache) for it. Unfortunately, httpcache expects to be a client cache which causes a number of minor mismatches with its use in a proxy.

I may investigate https://github.com/lox/httpcache next, which is designed as a server-side cache.