clue / quasselio

Quassel I/O, the lightweight web interface for Quassel IRC in a single PHP file
5 stars 0 forks source link

Assign HTTP cache headers #5

Open clue opened 6 years ago

clue commented 6 years ago

The channel backlog updates regularly, but it turns out some conservative estimates are probably okay for now. For new, let's start with using proper Last-Modified headers so that clients should receive a 304 Not Modified if the backlog did not update since the last visit. We can also use a Cache-Control: public, max-age=10 to allow this request to be cache for 10s to avoid unneeded network roundtrips.

In its current state, this project does not aim to replace Quassel (or any other complete IRC client for that matter), so we'll just start with a hard-coded default for now and eventually evaluate this again.