Flask css 无法实时更新
2024-10-08 18:45:19
css代码改完了,但是查看网页源代码css的内容还是很久之前的,根本没有更新
解决方法:
1.浏览器缓存。使用ctrl+F5
刷新一下页面
2.
3.
from datetime import timedelta # 设置静态文件缓存过期时间
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = timedelta(seconds=1)
也可以这样写:
app.send_file_max_age_default = timedelta(seconds=1)
最新文章
- 《JavaScript 源码分析》之 jquery.unobtrusive-ajax.js
- John the ripper使用教程
- redis基础总结
- echo, print, print_r
- SecureCRT的安装
- angularjs 手动加载
- struts2:拦截器
- 西川善司【神秘海域(Uncharted)】的图形分析
- Angularjs之controller 和filter(四)
- AngularJS 1.5.0-beta.2 and 1.4.8 have been released
- iOS 跑马灯 之 TXScrollLabelView
- 自己写的sql server触发器练练--高手请您跳过吧
- DELPHI SOKET 编程(使用TServerSocket和TClientSocket)
- linux的学习系列 5--环境变量
- 动态添加删除网卡 - 每天5分钟玩转 OpenStack(156)
- ubuntu下eclipse新建项目没有java project的解决办法
- Steeltoe之Distributed Tracing篇
- ASLP Kaldi
- 使用 BeautifulSoup 进行解析 html
- PHP二维数组如何根据某个字段排序
热门文章
- Spring-security整理
- KVC解析
- 使用jxl操作之一: 实现对Excel简单读写操作
- Ajax 请求参数过多导致 400 错误 and BCryptPasswordEncoder 加密判断
- CIA Hive Beacon Infrastructure复现1——使用Apache mod_rewrite实现http流量分发
- OS Summary 1
- java MVC 自定义类型转换器(Formatter、AnnotationFormatterFactory)
- OSCache使用指南
- JS截取字符串方法集合
- spring基于@Value绑定属Bean性失