服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 http headers
  3. 为特定文件types过期标题
Intereting Posts
HP LeftHand StoreVirtual VSA主机关系 可以根据IP地址提供特定的页面吗? encryption本地networking上的通信 我如何能够拍摄CentOS 5服务器的快照并稍后进行比较? 哪些操作系统随附有StartCom_Certification_Authority.pem 任何已知的SQL Server 2008 Management Studio内存泄漏问题? 有谁知道一个很好的免费SHA1哈希生成器? 是否有可能将多个端口连接到TCfilter? 两个位于不同位置的Exchange 2010服务器 – Outlook连接问题 IIS中的SSL协商日志logging Openssl heartbleed更新与编译的Apache 2.4.7不起作用 在Windows Server 2003 R2 SP2上安装Active Directory,无事件日志错误 将端口转发给libvirt / KVM中的guest虚拟机 Nginx下载PHP而不是渲染 如何设置networking接口eth0作为DHCP和eth0:1作为静态IP?

为特定文件types过期标题

我怎样才能添加expires标题只是为PNG和ico文件?

  • 为什么访问我的网站时,我的DNS查询时间太长(300 + ms)?
  • Apache正在运行; 但是,它报告不是,它不会重新启动
  • 通过mod_proxy传递IP地址
  • Apache2不能在Ubuntu上重新启动
  • 如何将任何* .mydomain变体指向本地主机(用于开发)?

使用mod_expires的ExpiresByType指令。 文档在这里。

 ExpiresActive On # expire after a month ExpiresByType image/png A2592000 ExpiresByType image/x-icon A2592000 

示例(对于htaccess文件):

 # Cache the following content for 1 month (4 Weeks) <FilesMatch "\.(jpg|jpeg|png|gif|ico)$"> Header set Cache-Control "max-age=2419200, public" </FilesMatch> 
  • Chroot apache / mysql / php是保护包含敏感数据的Web服务器的标准做法吗?
  • 高度可用的Web应用程序(LAMP)
  • CSR,SSL和负载平衡器?
  • 安全的Apache虚拟主机?
  • 我真的需要mod_security吗?
  • 我正在使用我自己的Apache服务器,我不能马上停止。 我能做些什么在短期内使事情变得更好?
  • Firefox间歇性地尝试下载/打开一个PHP页面,而不是在服务器上执行
  • Apache负载平衡器日志logging问题
  • closuresWeb服务器进行维护
  • UCC或WildCard SSL?

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