htmx-router 0.0.8 → 0.0.10
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.
- package/bin/router.js +1 -0
- package/package.json +1 -1
package/bin/router.js
CHANGED
|
@@ -167,6 +167,7 @@ class RouteTree {
|
|
|
167
167
|
try {
|
|
168
168
|
const depth = BuildOutlet(this, args, from);
|
|
169
169
|
if (from) {
|
|
170
|
+
res.setHeader('Vary', "HX-Push-Url");
|
|
170
171
|
res.setHeader('HX-Push-Url', req.url || "/");
|
|
171
172
|
if (depth > 0) {
|
|
172
173
|
res.setHeader('HX-Retarget', `#hx-route-${depth.toString(16)}`);
|