跳至主要內容
找不到符合的
  • 關於我
HC!專注於LAMP技術的技術部落客
  • 關於我
HC!專注於LAMP技術的技術部落客

apache2: 打開mod_expires module

  • HCHC
  • 2016-12-05
  • Apache

當靜態檔要做browser caching 時,需要給header,這時需要打開apache的mod_expires module。

指令:

a2enmod expires
sudo service apache2 restart #重開

參考來源:
Apache2 載入 Expires 的模組(mod_expires) 與 設定

Related posts:

  1. Apache2 Ubuntu Default Page
  2. wordpress:禁止xmlrpc.php這個檔案被訪問(透過apache)
# apache# mod_expires
HC
HC
文章: 245

相關文章

解決Adsense ads.txt 抓不到問題,從Apache 設定修改

  • 2023-04-18

Apache 替網站加上 Secure Referrer-Policy Header

  • 2022-01-17

Apache 設定 HSTS Header

  • 2022-01-17
版權 © 2025 - WordPress 佈景主題由 CreativeThemes 開發