-
Notifications
You must be signed in to change notification settings - Fork 147
Description
until we've switched to using the async version of Rocket, we'll have serious performance issues.
Most installations of Plume are already behind a (caching) proxy server. we can use this to fix the current performance issues by sending caching headers for posts pages:
How?
the posts page should send an ETag
with each response.
The advantage here is that we can have updates, and comments, since this means that we send new ETag
header.
to spare a lookup in the database, we could store data about whether the post's cache is invalidated within rocket (that would be a 304
response to a HEAD
request)
n.b.: The (caching) proxy server admin could adjust the time themselves, we wouldn't be sending any ourselves.
Alternatives
are currently a lot more effort:
and there's also: rwf2/Rocket#1343
which is similar to #777, but on rocket level
those aren't really alternatives, since this suggestion is operating at HTTP level, it's more orthogonal.