缓存图片出错,麻烦指点一下

#1 ryk007

我想给在网页做图片缓存,使用的.htaccess这种配置方式,文件里面的内容为以下内容:

Image and Flash content Caching for One Month

Header set Cache-Control “max-age=2592000″



我把.htaccess文件放到服务器的根目录访问的时候很出现以下错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@phpnow.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.


Apache/2.0.63 (Win32) PHP/5.2.10 Server at 127.0.0.1 Port 80  


如果把.htaccess文件删除以后正常。请问是什么原因?

2010-04-30 13:18:46

#2 jake

目前speedphp.com也是用到以下这段来进行图片缓存的,好像没分别,你看看是否htaccess能够支持这个Header set。

Image and Flash content Caching for One Month

Header set Cache-Control "max-age=2592000"

2010-04-30 13:23:16

#3 ryk007

不得行,我代码和你一样的,一样是错的。郁闷中。。

2010-04-30 13:51:22

#4 jake的马甲

看看apache的error.log吧,看里面记录了什么错误信息。

2010-04-30 15:04:13