Open ajiho opened 1 month ago
<!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/bootstrap@5.3.3/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/bootstrap@5.3.3/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/
/. cache 'in the input/
This is because of the cache feature of five-server: See https://github.com/yandeu/five-server?tab=readme-ov-file#cache.
npm scripts
After enabling five server, it will automatically add
/. cache 'in the input/