Implenting very rudimentary http caching