Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement ETag and Last-Modified #130
Implements ETag and Last-Modified for cache control; resolves issue #129
For category and entry views, it generates a fingerprint and last-modified time of the most recent relevant file. The relevant files considered are:
This is a pessimistic time stamp, the idea being that any modification to an entry might end up changing things like previous/next links or any sidebar showing recent changes or the like. This avoids having to do an expensive process of evaluating the template to see what related things have changed (which would defeat the entire purpose to this caching in the first place).