ETag
Add an ETag with etag(), and return 304 when nothing changed
import { , } from "@senrijs/senri";
const = ();
.(());- It adds a weak
ETagto 2xx responses to GET - If
If-None-Matchmatches, it returns 304 - The handler runs every time (the
ETagis made from the body) - Stream bodies and HEAD get no
ETag - Register
compress()andcache()beforeetag()
Options
Prop
Type