如何强制火狐绕过BFCache为Angular.JS谐音? [英] How to force Firefox to bypass BFCache for Angular.JS partials?

查看:285
本文介绍了如何强制火狐绕过BFCache为Angular.JS谐音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的Angular.js页面上进行更改到HTML部分。刷新页面导致Firefox正确地重新请求从服务器主HTML网页,但呈现的客户端不会被重新请求,并从BFCache代替抓起后续部分的模板,所以改变这些文件都没有检测。

I'm working on an Angular.js page and making changes to an html 'partial'. Refreshing the page causes Firefox to correctly re-request the main html page from the server, but subsequent 'partial' templates that are rendered client-side are never re-requested and instead grabbed from the BFCache, so changes to those files aren't detected.

这是Firebug的截图:

Screenshot from Firebug:

我可以通过开发服务器(Django的),这些谐音永远不会要求确认。

I can confirm via the development server (Django) that those partials are never requested.

我已经试过各种刷新,其中包括刷新加扩展程序

I've tried every kind of refresh, including the Reload Plus extension.

推荐答案

这是不太理想,但有两个选项出现来解决这个问题。

These are less than ideal, but two options appear to address the problem.

一是清除缓存插件,可配置清除磁盘和内存缓存和重新加载当前选项卡。我不知道这是否完全或只是清除缓存当前选项卡的域,但它可能是整个缓存。

One is the Clear Cache addon, which can be configured to clear disk and memory cache and reload the current tab. I'm not sure if this clears the cache completely or just for the current tab's domain, but it's probably the entire cache.

另外就是取消萤火浏览器的缓存:

The other is to disable the browser cache in firebug:

我不知道,如果这只是禁用当前页面缓存,当前域,还是随处可见。

I'm not sure if this simply disables the cache for the current page, current domain, or everywhere.

它仍然会是不错的有一个刷新页面,一切本页面引用选项。

It'd still be nice to have a 'Reload this page and everything referenced by this page' option.

这篇关于如何强制火狐绕过BFCache为Angular.JS谐音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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