htmx-router
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -29,4 +29,4 @@ "use strict"; | ||
function Link(props, contents) { | ||
return elements.createElement("a", { target: props.target || "", style: props.style || "", href: props.to, "hx-get": props.to, "hx-headers": '{"hx-headless": "true", "Cache-Control": "no-cache"}' }, contents); | ||
return elements.createElement("a", { target: props.target || "", style: props.style || "", href: props.to, "hx-get": props.to, "hx-headers": '{"hx-headless": "true"}' }, contents); | ||
} | ||
exports.Link = Link; |
@@ -170,2 +170,3 @@ "use strict"; | ||
if (from) { | ||
res.setHeader('Vary', "HX-Push-Url"); | ||
res.setHeader('HX-Push-Url', req.url || "/"); | ||
@@ -172,0 +173,0 @@ if (depth > 0) { |
{ | ||
"name": "htmx-router", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "A remix.js style file path router for htmX websites", | ||
@@ -5,0 +5,0 @@ "main": "./bin/index.js", |
26583
708