Rollator: If-Modified-Since implemented.

I’ve created a new ‘global’ table for Rollator – currently it holds a timestamp of the last update.

Every time a page is (re)loaded, it checks against this value, and if an ‘if modified since’ query is asked, it will either exit with a 304, or reply with the timestamp of the last update, and the document, appropriately. Note that the hooks are currently implemented for creation/deletion of entries, QuickURLs, or music. For obvious reasons, I’ve not implemented this for comments.

I’ll soon begin expanding this table, and moving things into it – as it’s kind of a ‘static’ thing – it’d be nice to have a fairly ‘set-and-forget’ configuration, with your ‘install defaults’ backed up in the SQL database, so you can import/export at will, should something get messed up.

I’ve also fixed a couple of bugs with the cookie handling – at points, there was a race condition on setting/removing cookies, so if you logged out without remembering to ‘logout’, it’d attempt to reset your cookies after the headers were already sent. Oops. :)