htmx-router 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/response.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htmx-router",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "A lightweight SSR framework with server+client islands",
5
5
  "keywords": [
6
6
  "htmx",
package/response.js CHANGED
@@ -107,7 +107,7 @@ export function AssertETagStale(request, headers, etag, options) {
107
107
  headers.append("Cache-Control", "must-revalidate");
108
108
  headers.set("ETag", etag);
109
109
  const client = request.headers.get("if-none-match");
110
- if (client === etag)
110
+ if (client !== etag)
111
111
  return;
112
112
  const res = new Response(null, {
113
113
  status: 304, statusText: "Not Modified",