← back to Yolo Agent Tasks Staging
07_wallco_basket_etag.md
18 lines
Work on ~/Projects/wallco-ai. /basket page is rendered server-side from localStorage-passed ids? Probably reads localStorage on client side. Check the existing route first via grep.
TASK: /basket route ETag.
Step 1: `grep -n "app.get.'/basket'" server.js` to find the route.
If /basket reads ?ids= from URL: add ETag pattern same as /compare and /brief — key = (catalog lastmod, ordered ids). Add If-None-Match short-circuit at the top.
If /basket reads from localStorage (client-side): SKIP this task and move to the next. Commit a no-op comment instead: just touch a README or skip entirely.
Smoke: only if applicable — fire /basket?ids=14,72 twice, second with INM, expect 304.
Commit (if applicable): `/basket: ETag + 304 short-circuit on If-None-Match (same pattern as /compare /brief)`
Reload via pm2.
If skipped: don't commit anything; the task simply did nothing. Move to next file.