implement last-modified caching fix