我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

我可以在PHP中使用filemtime('style.css')来强制浏览器重新加载css吗?

Can I use filemtime in PHP to force a browser to reload a css?

 $mtime = filemtime('style.css');
 echo "\style.css?mod=" . $mtime;

Is filemtime too slow?

filemtime should be fine under normal circumstances.

You could also look into E-Tags and just have Apache do the work for you.

近期文章

  • RequestError: unable to verify the first certificate
  • 我有个问题,在termux的
  • 阿里云oss怎么压缩已上传的文件
  • 还有一个错误在哪里啊?
  • kraken2运行过程中报错
  • python开发,图片处理,
  • 全量发布和一二三级发布有什么区别
  • 为什么有package的代码不能创建文件夹?
  • opencv 图像处理
  • 用PHP解释字符串的类型[重复]
  • 小程序this.setData中传两个参数,第一个是对象,第二个是箭头函数,有啥用?
  • ZYNQ7020扩展接口引入外时钟
  • wx小程序转发获取信息
  • DEseq2包安装不上
  • WPF Binding
  • Python爬虫失败
  • python随机森林分类地物
  • PHP的一个看起来常见的?报错问题
  • Mysql CSV加载infile
  • 如何将Noteexpress所有题录尤其附件转入Zotero

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华