Add last modified cache function.