@very-simple/ajax 1.0.0-beta.1 → 1.0.0-beta.2

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/dist/index.js +2 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -409,6 +409,8 @@ var getVisitOptions = (el) => {
409
409
  // src/start.ts
410
410
  var start = (options = {}) => {
411
411
  Object.assign(config, options);
412
+ const url = normalizeUrl(window.location.href);
413
+ if (!cache.has(url)) cache.set(url, document.documentElement.outerHTML);
412
414
  if (config.scrollBehavior) history.scrollRestoration = "manual";
413
415
  interceptLinks();
414
416
  interceptForms();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@very-simple/ajax",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "A very simple turbolinks inspired ajax library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",