[issue2551378] How to cache etags?

John Rouillard <[email protected]> Mon, 09 Dec 2024 18:02:00 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

Calculating etags takes time. It seems we should be able to cache an etag
with the item. Maybe an automatic _etag property added tot hey hyperdb base object like
the created or activity property. (IIRC the activity property is already used when
checking if-modified-since.) To prevent loops, the _etag would not be included in
the etag calculation and would be automatically updated by the db code when anything
in the item changed.

The web front end could just pull the _etag directly rather than retrieving
the whole item and calculating the etag. This would speed up conditional gets.
It could still append/prepend data to the etag to produce a different tag based
on content-encoding etc.

See also: issue2551356 - Add etag header when If-Modified-Since GET request returns not-
modified (304)

----------
components: Web interface
messages: 8224
nosy: rouilj
severity: minor
status: new
title: How to cache etags?
type: resource usage

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551378>
_________________________________________________