当前位置:网站首页>Process the cached image of the browser, and only request it once
Process the cached image of the browser, and only request it once
2022-07-21 15:21:00 【Ink fragrance^_^】
Set the browser not to cache a picture , Just set the following fields in the response header returned by this picture .
// Set the browser not to cache this picture
resp.setHeader("Pragma", "No-cache");
resp.setHeader("Cache-Control", "non-cache");
resp.setDateHeader("Expires", 0);
js Make the following settings in
function changeImage(){
document.getElementById("img").src = "${pageContext.request.contextPath}/imageCode?time="
+ new Date().getTime();
}
边栏推荐
- 2.3 分支语句
- Xshell determines that if the file exceeds the specified size, the file will be emptied
- 长城证券手机软件线上炒股开户证券公司佣金低?开户安全吗?
- CFile类
- [daily question] 1260 2D mesh migration
- DAMA-第五章(数据建模与设计)
- Yunna Xianning communication machine room dynamic loop monitoring system, telecom dynamic loop monitoring system
- Spark SQL compilation module - lexical and parser antlr4 (I
- Visual Studio 好用的插件分享
- ASP.NET 学习篇(1)
猜你喜欢
DAMA-第十二章(元数据管理)
PLC的通信模式
Web3流量聚合平臺Starfish OS,詮釋真正商業的“P2E”生態
Winform窗体使用Assembly实例化及传参
How to ensure data security while saving 30% disk space in tdsql PG version DB · insight
Section 15 of Chapter 2: basic operation of dictionary
福昕软件亮相2022年全国化工企业数智化转型发展论坛
The relationship between data warehouse and data center
巧用RoaringBitMap处理海量数据内存diff问题
Hangzhou dynamic environment monitoring system supplier, dynamic environment monitoring equipment
随机推荐
第二章第十二节:set集合
Winform记住密码功能
asp.net -GridView自带的删除行项超链接用法(DeleteButton)
架构实战营模块 7 作业
Arithmetic operator 2 (Gretel software - Jiuye practical training)
数据仓库和数据中台的关系
C # singleton mode
处理浏览器缓存图片,只请求一次
Section 4 of Chapter 2: replacement and cutting
Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
带你认识一下数仓的分区自动管理
解决npm 安装 nrm遇到报错问题SyntaxError: Unexpected token import
DAMA-第十一章(数据仓库与商务智能)
6. Stack, stack frame
软链接和硬链接的区别以及文件系统如何取文件
买了一台云服务器到底能干什么?到底有哪些新玩法?
使用优先队列priority_queue实现对基unordered_map于value值的数值筛选
Section 8 of Chapter II: addition, deletion, modification and query of the list
Section 7 of Chapter 2: the concept of list
Arm assembly instruction set with examples