服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.2
  3. .htaccess:如何删除caching控制的“最大年龄”?
Intereting Posts
Apache – 如何redirect/〜用户名到不同的URL 通过Powershell Remoting传输文件(如linux中的scp) 杀死terminal会话的脚本 Oracle *在线*重做日志应该备份吗? MySQL在重负载下自动重启 CentOS proftpd从1.3.1> 1.3.3升级 以编程方式阻止url进行比率限制,取消阻止或终止该块 为什么在Linux下运行的Windows 7虚拟机不能使用所有虚拟处理器? Elasticsearch独立模式,五天之后有logstash拒绝数据 EC2自动安装软件 发布DFS命名空间? 1盘故障后如何修复LSI MegaRaid RAID5 ASP.NET MVC共享虚拟主机推荐? (或者,好的Windows VPS提供商?) 特定URL上的Apache2 NTLM身份validation 截断SharePoint中的AuditData表

.htaccess:如何删除caching控制的“最大年龄”?

在标题响应中,我想删除Cache-Control的“max-age”? 我不想完全取消Cache-Control,只是想摆脱max-age。 所以下面是错误的:

标题未设置caching控制

我认为有一种方法可以使用“编辑”来代替“未设置”。 但是,我不知道如何使用“编辑”。

build议?

  • 除了一个文件,Apache 301redirect
  • apache – 禁止访问一些静态文件
  • 我怎样才能设置http标头在htaccess只为IE 9
  • 如何在更改服务器时redirect域名
  • htaccess mod_rewrite子目录到子域

  • .htaccess密码保护不在本地主机中工作
  • .htaccess URL重写为多参数项目
  • 恶意脚本更改服务器上的.htaccess文件
  • .htaccess和redirect – 除了这个列表redirect
  • .htaccessredirect导致内部服务器错误

你可以做一些事情:

Header edit Cache-Control ^(.*)max-age=(\d+)(.*)$ \1\3 

这应该从Cache-Control头中删除'max-age ='。

设置不同的值:

 Header set Cache-Control "private, no-cache, no-store, ..." 

它将取代以前的标题。

  • htaccessredirect问题
  • .htaccess重写:如何为特定文件添加exception?
  • 文档根目录更改时,重写规则停止工作
  • 我可以让Apache告诉我哪个configuration文件有错误吗?
  • .htaccess httpsredirect最佳方法
  • Apache2的mod_rewrite可能的错误?
  • .htaccess:阻止代理
  • mod_wsgi没有访问Apacheconfiguration
  • 无法指定扩展名无法加载IMG
  • 是否有可能使用htaccess桑巴用户控制?

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy