[英]SimpleServer server not serving latest files selectively
I am observing a strange behaviour. 我观察到一种奇怪的行为。 I have some HTML/JS files.
我有一些HTML / JS文件。 I am using SimpleServer as web server.
我正在使用SimpleServer作为Web服务器。 I notice that the latest version of one particular file is not uploaded even after I change that file.
我注意到,即使我更改了某个文件,也没有上传该文件的最新版本。 When I inspect the file using browser's developer tools, I still see old code.
使用浏览器的开发人员工具检查文件时,仍然看到旧代码。 What could be the reason?
可能是什么原因?
The file in SpecHelper.js. SpecHelper.js中的文件。 It is included in index.html as follows
它包含在index.html中,如下所示
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jasmine Spec Runner v2.3.4</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.3.4/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="lib/jasmine-2.3.4/jasmine.css">
<!-- App Dependencies -->
<script src="lib/jquery-2.1.4.js"></script>
<script src="/vendor.js"></script>
<!-- Test libraries -->
<script type="text/javascript" src="lib/jasmine-2.3.4/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine-2.3.4/jasmine-html.js"></script>
<script type="text/javascript" src="lib/jasmine-2.3.4/boot.js"></script>
<!-- include source files here... -->
<script type="text/javascript" src="/app.js"></script>
<!-- include spec files here... -->
<script type="text/javascript" src="SpecHelper.js"></script>
<script type="text/javascript" src="app_spec.js"></script>
</head>
<body>
<p>test </p>
</body>
</html>
If I change index.html or app_spec.js, I can see the changes but if I change SpecHelper.js, I still see the old code! 如果更改index.html或app_spec.js,则可以看到更改,但是如果更改SpecHelper.js,则仍可以看到旧代码! I am debugging SpecHelper.js and this is not helping!
我正在调试SpecHelper.js,这无济于事!
In case of Google Chrome browser: did you try chrome's "empty cache and hard reload" option after right-clicking to the refresh button with opened dev tools window? 如果使用的是Google Chrome浏览器:在打开的开发工具窗口中右键单击刷新按钮后,您是否尝试了chrome的“清空缓存并重新加载硬盘”选项? You should try to open the page in an incognito or private browser window too.
您也应该尝试在隐身或私人浏览器窗口中打开页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.