Fossil User Forum

Proof-of-concept ETag caching for the /timeline page
Login

Proof-of-concept ETag caching for the /timeline page

Proof-of-concept ETag caching for the /timeline page

(1) By Florian Balmer (florian.balmer) on 2020-05-10 13:31:01 [source]

Just noticed the check-in to enable ETag caching of /timeline views:

As the Fossil ETag caching mechanism is not "login-session-aware", the page won't refresh after login and logout, and the username in the upper right corner may be wrong.

This can be fixed by adding user.cexpire or user.cookie as an ingredient of the ETag hash.

(2) By Florian Balmer (florian.balmer) on 2020-05-11 11:45:02 in reply to 1 [link] [source]

It also works with g.zLogin, but with user.cookie, all pages are invalidated if a "new session" is started (by logoff and re-login), which may be desired.

user.cexpire, while at hand, can also be reused to calculate the login time, correspondig to the oldest session-aware If-Modified-Since stamp, but that's not currently used by the /timeline page.