php htaccess实现缓存,php – 利用浏览器缓存,如何在apache或.htaccess?

不知道这里做什么?我有一个巨大的文件列表,谷歌速度页说“利用浏览器缓存”,但我不知道如何?我乱七八糟的或更改Apache配置文件(下面)或者我把东西放在我的.htaccess页面?

非常感谢!!

ProxyRequests Off

CacheRoot "/var/run/proxy"

CacheSize 1024

CacheGcInterval 24

#CacheMaxExpire 24

#CacheLastModifiedFactor 0.1

#CacheDefaultExpire 1

#NoCache a_domain.com another_domain.edu joes.garage_sale.com

Allow from example.com

Deny from all

Order Deny,Allow

##

#### mod_expires is configured so that all static files but images

#### expire after 60 seconds. Any response that has a life span of more

#### than 5 seconds (see webperfcache.conf) will be cached by webperfcache.

#### Make sure your CGIs return a "Cache-Control: no-cache" header if you

#### elect to make your dynamically generated HTML pages not cache-able.

#### If all your HTML pages are static you may also increase ExpiresDefault.

ExpiresActive On

ExpiresDefault A60

ExpiresByType image/bmp A3600

ExpiresByType image/gif A3600

ExpiresByType image/ief A3600

ExpiresByType image/jpeg A3600

ExpiresByType image/png A3600

ExpiresByType image/tiff A3600

ExpiresByType image/x-cmu-raster A3600

ExpiresByType image/x-portable-anymap A3600

ExpiresByType image/x-portable-bitmap A3600

ExpiresByType image/x-portable-graymap A3600

ExpiresByType image/x-portable-pixmap A3600

ExpiresByType image/x-rgb A3600

ExpiresByType image/x-xbitmap A3600

ExpiresByType image/x-xpixmap A3600

ExpiresByType image/x-xwindowdump A3600

ExpiresByType audio/basic A3600

ExpiresByType audio/midi A3600

ExpiresByType audio/mpeg A3600

ExpiresByType audio/x-aiff A3600

ExpiresByType audio/x-pn-realaudio A3600

ExpiresByType audio/x-pn-realaudio-plugin A3600

ExpiresByType audio/x-realaudio A3600

ExpiresByType audio/x-wav A3600

ExpiresByType video/mpeg A3600

ExpiresByType video/quicktime A3600

ExpiresByType video/x-msvideo A3600

ExpiresByType video/x-sgi-movie A3600

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值