English 中文(简体)
2. Chrome 历史预报问题
原标题:Chrome History API problems

该网站存在问题。

大部分网站使用Ajax/xmlhttprequest for pagesloads and the history AP,使背纽芬兰成为可能。 只有页面内容随请求而变化,才永远不再重载。 这只是重复了上页的阿贾克斯要求。 直到有人在观看博客后点击背纽州,所有工作都是罚款的。 博客装满了 a子,只是一个标准环节。

如果我去博客,那么现场的负荷就会正确。 装载导航的主页,也在其内部浏览。

然而,在 Chrome,如果我从博客中把 back子放在后面,外页的装上了,那么亚克斯请求的内容就是这样。 你们也许需要看到它完全理解。

这是否是 Chrome或我的工作? 似乎我可以返回一个部分使用xmlhttprequest的网页,因为只有要求的项目被装上。

The website is here: http://www.basmooarc.com

增 编

Ric

最佳回答

short answer

添加<条码>Cache-Control: nostore HTTP是XHR对策的负责人。

long answer

我确信,这是 Chrome的ug。 我看到我的照片中准确的两倍,在Edreo,但 Chrome的 break子中,它做了精细的工作。 我认为,问题在于 Chrome Chrome击XHR的对策,并在你向纽特州施压时从海滩上提供服务。 我用Etags,但 Chrome没有双手检查Etags。 它只是使用了线性反应,这一反应遗漏了所有外部内容。 迄今为止,最佳解决办法一是,在XHR的回复中添加<条码>。

You can see the behavior through Chrome s net-internals page. Type chrome://net-internals in the URL bar, open the Events tab and go through the steps to reproduce your bug. When you go to a non-ajax page and then press the back button, you ll see a URL_REQUEST entry for the URL of the page you re trying to go to, but Chrome just checks the cache and that s it. Contrast that with a normal request for that URL. The normal one will have a cache check, followed by an HTTP_TRANSACTION_SEND_REQUEST section, which is where Chrome makes the actual HTTP request.

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签