📜  在 cpanel .htaccess 中启用缓存 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:38.249000             🧑  作者: Mango

代码示例1
# 1 YEAR
ExpiresActive On

Header set Cache-Control "max-age=29030400, public"
ExpiresDefault "access plus 1 years"
Header unset Last-Modified
Header unset ETag
SetOutputFilter DEFLATE


# 1 MONTHS

Header set Cache-Control "max-age=2419200, public"
ExpiresDefault "access plus 1 month"
SetOutputFilter DEFLATE



Header set Cache-Control "max-age=604800, public"
ExpiresDefault "access plus 1 week"
SetOutputFilter DEFLATE


# 30 MIN

SetOutputFilter DEFLATE