Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very strange behavior #135

Open
ajiho opened this issue Jun 8, 2024 · 1 comment
Open

Very strange behavior #135

ajiho opened this issue Jun 8, 2024 · 1 comment

Comments

@ajiho
Copy link

ajiho commented Jun 8, 2024

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link cache rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
</head>

<body>


  <div class="container">
    <form action="" class="p-3">
      <div class="row mb-3">

        <label for="cache" class="col-sm-2 col-form-label text-sm-end">缓存时间</label>

        <div class="col-sm-10">
          <div class="input-group">
            <input type="text" class="form-control" id="cache" name="cache" value="10">
            <span class="input-group-text">分钟</span>
          </div>
          <div class="form-text">本地开发一般推荐设置为 0,线上环境建议设置为 10 </div>
        </div>

      </div>
    </form>
  </div>


  <script cache src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>

</body>

</html>

npm scripts

"server": "five-server --watch=dist dist",

After enabling five server, it will automatically add /. cache 'in the input/

@yandeu
Copy link
Owner

yandeu commented Jun 8, 2024

This is because of the cache feature of five-server:
See https://github.com/yandeu/five-server?tab=readme-ov-file#cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants