Chrome 不缓存图像/js/css [英] Chrome doesn't cache images/js/css

查看:46
本文介绍了Chrome 不缓存图像/js/css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当 Chrome 加载我的网站时,它会在显示文件之前检查服务器是否有更新版本的文件.(图像/Javascript/CSS)它从服务器获取 304,因为我从不编辑外部 javascript、css 或图像.

When Chrome loads my website, it checks the server for updated versions of files before it shows them. (Images/Javascript/CSS) It gets a 304 from the server because I never edit external javascript, css or images.

我想让它做的是,在不检查服务器的情况下显示图像.

What I want it to do, is display the images without even checking the server.

这里是标题:

Connection:keep-alive    
Date:Tue, 03 Aug 2010 21:39:32 GMT    
ETag:"2792c73-b1-48cd0909d96ed"    
Expires:Thu, 02 Sep 2010 21:39:32 GMT    
Server:Apache/Nginx/Varnish

如何让它不检查服务器?

How do I make it not check the server?

推荐答案

确保在开发者工具中取消选中/禁用禁用缓存复选框.

Make sure you have the disable cache checkbox unchecked/disabled in the Developer Tools.

这篇关于Chrome 不缓存图像/js/css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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