Chrome不加载最新版本的Web Worker脚本(运行缓存版本) [英] Chrome not loading latest version of web worker script (runs a cached version)

查看:564
本文介绍了Chrome不加载最新版本的Web Worker脚本(运行缓存版本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我编辑我的web worker脚本并刷新页面,web worker脚本就是一个缓存版本。我有理由相信它不是我的网络服务器,因为我可以立即加载所有其他文件的最新副本,甚至重新启动网络服务器也不能解决问题。 如果我重新启动chrome,它只加载最新版本的web worker脚本,这是非常低效的,不用说!即使重新启动chrome,它也不会修复它。有什么我可以做的,以解决这个问题吗?

If I edit my web worker script and refresh the page, the web worker script is a cached version. I am reasonably confident it is not my webserver, because I can immediately load the latest copies of all other files, and even restarting the webserver does not fix the problem. It only loads the newest version of the web worker script if I reboot chrome, which is highly inefficient, needless to say! It doesn't fix it even if I restart chrome. Is there anything I can do to get around this?

推荐答案

您的网络服务器决定如何cachable给定的网络资源和浏览器尝试尊重这些设置,缓存Web服务器说可以缓存的资源,而不是缓存它不应该缓存的内容。

Your web server determines how cachable a given web resource is and the browser attempts to respect those settings, caching resources that the web server says it is OK to cache, not caching things it says shouldn't be cached.

如果您想更改您可以选择以下选项:

If you want to change that, you have these options:


  1. 手动清除浏览器缓存

  2. 暂时关闭浏览器缓存。

  3. 暂时更改您的Web服务器上的设置,以指示浏览器不缓存

  4. 为这一个网页覆盖缓存(shift- F5在某些浏览器中)强制重新载入新内容
  5. 将查询参数添加到您每次需要载入新版本时更改的web worker脚本的URL。 / li>
  1. Clear the browser cache manually
  2. Temporarily turn off browser caching.
  3. Temporarily change the settings on your web server to instruct the browser not to cache
  4. Override the cache for just this one web page (shift-F5 in some browsers) to force a reload of new content
  5. Add a query parameter to the URL of the web worker script that you change each time you want it to load a new version.

这篇关于Chrome不加载最新版本的Web Worker脚本(运行缓存版本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆