服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 http headers
  3. 为特定文件types过期标题
Intereting Posts
冷却服务器机架与水? 明智? 重新使用能源的小安装? RAID 5驱动器升级 子域configuration由默认configuration覆盖 我可以限制只有连接的实例的根访问? 寻找缓慢的DNS地址解决testing目的 如何使用SFP +端口连接带有边缘/客户端交换机的核心交换机 OSX服务器VNCconfiguration 如何在同一台机器上的两个Windows应用程序之间嗅探udp 是否可以使用组件服务连接到没有Windows域环境的应用程序? 无法扩展分区 将共享文件夹和用户configuration文件文件夹移动到新服务器 将SATA3驱动器连接到SAS端口有什么优势吗? 解压缩文件作为不同的用户 如何仅返回空的或有问题的DNSlogging以用于批量查询 Dell Poweredge 2970,2逻辑驱动器失败

为特定文件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