attempt to reproduce https://github.com/bigskysoftware/htmx/issues/854 (unsuccessful so far)

This commit is contained in:
carson
2022-04-15 09:42:23 -06:00
parent 7be95f6e3b
commit 9e7d5e7939
5 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="application/javascript" src="../../../src/htmx.js"></script>
<meta name="htmx-config" content='{"historyCacheSize":0, "refreshOnHistoryMiss" : true}'>
<title>History - 1</title>
</head>
<body style="padding:20px;font-family: sans-serif" hx-boost="true">
<h1>History Test</h1>
<a hx-get="1.html" hx-push-url="true" hx-target="body">1</a>
<a hx-get="2.html" hx-push-url="true" hx-target="body">2</a>
<a hx-get="3.html" hx-push-url="true" hx-target="body">3</a>
<a hx-get="4.html" hx-push-url="true" hx-target="body">4</a>
<h3>Page 1</h3>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="application/javascript" src="../../../src/htmx.js"></script>
<meta name="htmx-config" content='{"historyCacheSize":0, "refreshOnHistoryMiss" : true}'>
<title>History - 2</title>
</head>
<body style="padding:20px;font-family: sans-serif" hx-boost="true">
<h1>History Test</h1>
<a hx-get="1.html" hx-push-url="true" hx-target="body">1</a>
<a hx-get="2.html" hx-push-url="true" hx-target="body">2</a>
<a hx-get="3.html" hx-push-url="true" hx-target="body">3</a>
<a hx-get="4.html" hx-push-url="true" hx-target="body">4</a>
<h3>Page 2</h3>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="application/javascript" src="../../../src/htmx.js"></script>
<meta name="htmx-config" content='{"historyCacheSize":0, "refreshOnHistoryMiss" : true}'>
<title>History - 3</title>
</head>
<body style="padding:20px;font-family: sans-serif" hx-boost="true">
<h1>History Test</h1>
<a hx-get="1.html" hx-push-url="true" hx-target="body">1</a>
<a hx-get="2.html" hx-push-url="true" hx-target="body">2</a>
<a hx-get="3.html" hx-push-url="true" hx-target="body">3</a>
<a hx-get="4.html" hx-push-url="true" hx-target="body">4</a>
<h3>Page 3</h3>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="application/javascript" src="../../../src/htmx.js"></script>
<meta name="htmx-config" content='{"historyCacheSize":0, "refreshOnHistoryMiss" : true}'>
<title>History - 4</title>
</head>
<body style="padding:20px;font-family: sans-serif" hx-boost="true">
<h1>History Test</h1>
<a hx-get="1.html" hx-push-url="true" hx-target="body">1</a>
<a hx-get="2.html" hx-push-url="true" hx-target="body">2</a>
<a hx-get="3.html" hx-push-url="true" hx-target="body">3</a>
<a hx-get="4.html" hx-push-url="true" hx-target="body">4</a>
<h3>Page 4</h3>
</body>
</html>

View File

@@ -0,0 +1,19 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="application/javascript" src="../../../src/htmx.js"></script>
<title>History - Index</title>
<meta name="htmx-config" content='{"historyCacheSize":0, "refreshOnHistoryMiss" : true}'>
<script>
htmx.logAll();
</script>
</head>
<body style="padding:20px;font-family: sans-serif">
<h1>History Test</h1>
<a hx-get="1.html" hx-push-url="true" hx-target="body">1</a>
<a hx-get="2.html" hx-push-url="true" hx-target="body">2</a>
<a hx-get="3.html" hx-push-url="true" hx-target="body">3</a>
<a hx-get="4.html" hx-push-url="true" hx-target="body">4</a>
<h3>Index</h3>
</body>
</html>