revalidate pages and the app shell on every load, so a reader sees a new render at once
Signed-off-by: dawn <90008@klbr.net>
3 unmodified lines4567891011121324 unmodified lines3839404142434445463 unmodified lines3 unmodified lines root <out>/www; # pages are stored gzipped next to an empty stub, so try_files sees the name gzip_static always; gunzip on; # a page changes with every render that touches it: revalidate (ETag) on every use add_header Cache-Control "no-cache"; # a later page of a list is <list>~page-N.html: the uri is rewritten to that name and # comes back through here (rewrite last is what's safe inside an if). one the renderer # didn't keep goes to the SPA, never to page 1 if ($arg_page ~ "^0*([2-9]|[1-9][0-9]+)$") {24 unmodified lines}location @spa { root <build>; gzip_static on; add_header Cache-Control "no-cache"; try_files $uri /index.html;}location /_app/ { root <build>;3 unmodified lines