Skip to content

Instantly share code, notes, and snippets.

@GaelGirodon
Last active June 15, 2024 18:31
Show Gist options
  • Save GaelGirodon/8ba17790f1b1db412e2d99fa8f806357 to your computer and use it in GitHub Desktop.
Save GaelGirodon/8ba17790f1b1db412e2d99fa8f806357 to your computer and use it in GitHub Desktop.
htmx issue - Duplicated requests - Minimal reproducible example
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page 1</title>
<script src="https://unpkg.com/htmx.org@1.9.12" integrity="sha384-ujb1lZYygJmzgSwoxRggbCHcjc0rB2XoQrxeTUQyRjrOnlCoYta87iKBWq3EsdM2" crossorigin="anonymous"></script>
</head>
<body hx-boost="true">
<ul>
<li><a href="page1.php">Page 1</a></li>
<li><a href="page2.php">Page 2</a></li>
</ul>
<?php include "_head.php" ?>
<h1>Page 1</h1>
<img src="/stream.php" title="Stream"
alt="Stream is unavailable" />
<?php include "_foot.php" ?>
<?php include "_head.php" ?>
<h1>Page 2</h1>
<?php include "_foot.php" ?>
<?php
http_response_code(502);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment