caching控制Apache的错误
我已经把httpd.conf # 480 weeks <filesmatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "max-age=290304000, public" </filesmatch> # 2 days <filesmatch "\.(xml|txt)$"> Header set Cache-Control "max-age=172800, public, must-revalidate" </filesmatch> # 2 hours <filesmatch "\.(html|htm)$"> Header set Cache-Control "max-age=7200, must-revalidate" </filesmatch> 但是当我运行/etc/init.d/apache restart (在Debian 6.0中),我得到: Syntax error on line 3 of /etc/apache2/httpd.conf: Invalid command 'Header', perhaps misspelled or defined by a […]