apache响应报文头部设置
来源:互联网 发布:应用程序劫持软件 编辑:程序博客网 时间:2024/06/05 23:46
转载:http://www.turbocms.com/support/kb/6801.shtml
Apache里配置 mod_expires 和 mod_headers 以支持CACHE
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 1 weeks"
ExpiresByType image/gif "access plus 2 months"
ExpiresByType image/jpeg "access plus 2 months"
ExpiresByType application/x-shockwave-flash "access plus 2 months"
ExpiresByType application/x-javascript "access plus 2 months"
</IfModule>
<IfModule mod_headers.c>
# YEAR
<FilesMatch "\.(flv|gif|ico|jpeg)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
# WEEK
<FilesMatch "\.(pdf|swf|js|css)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
# DAY
<FilesMatch "\.(htm|html|shtml)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
</IfModule>
- apache响应报文头部设置
- HTTP报文-响应头部
- IP报文中的头部设置
- 响应报文
- 响应报文
- RTP报文头部分析
- IP协议---报文头部
- Http报文头部
- HTTP报文-请求头部
- 手机响应式布局rem和头部设置
- 请求报文及响应报文
- TCP报文段头部格式
- 一个http请求的响应报文即response,头部即header,可以任意增加属性吗,即自定义header?
- 响应式头部
- HTTP响应报文
- HTTP请求报文和HTTP响应报文
- HTTP请求报文和HTTP响应报文
- HTTP请求报文和HTTP响应报文
- android音频通信(三)——双向通信(A2B协议)之手机接收
- upnp协议学习(1)
- CentOS下源码安装Apache2.4+PHP5.4+MySQL5.5
- jQuery Mobile 入门教程
- PB数据窗口实现点击标题栏字段时按相应字段升/降序排序
- apache响应报文头部设置
- datagridview 的常用方法
- Spring初感觉
- TCP/IP协议
- Android积累之《Wrong orientation? No orientation specified, and the default is horizontal, yet this la:》
- Linux 性能监测:CPU
- 再次看到那篇博客
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- jQuery 中的编程范式