Tag: http status code 304

Jquery.get()在IE8 / 9中不起作用。 不会加载未修改的缓存页面304

Code Igniter版本’2.0.3’Jquery 1.7 Jquery History插件 嗨,大家好, 我有一个CodeIgniter应用程序,我以ajax方式构建。 我有如下function: $(document).on(‘click’,’.ajax_link’,function(e){ //Stop the normal href action e.preventDefault(); //Grab the destination URL var new_url = $(this).attr(‘href’) //Grab the content via ajax and pass it to the history change function $.get(base_url+new_url,function(data){ History.pushState({ content:data.content, url:data.url }, data.title, data.url); //Refresh some site variables refresh(); },’json’); }); 它所做的就是使用ajax_link类捕获对锚元素的点击,并将响应发送到处理该响应数据放入页面的函数。 这适用于Chrome和FF。 我点击链接,jQuery发出get请求,我得到一个JSON对象,我的history.pushState()函数将一些json数据注入我的页面。 我遇到的问题是在IE8中。 基本上发生的事情是当我第一次打开应用程序时,链接工作但它们只工作一次。 […]