我正在尝试设置过期特定URI头,但由于某种原因,它不工作,我已经在httpd.conf文件中迄今所做的是以下几点:设置特定URI的过期标题?
<LocationMatch "/mysite/contentservices/weather/get.json">
ExpiresDefault A86400
</LocationMatch>
<LocationMatch "/mysite/*">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
ExpiresByType text/css "access plus 1 day"
ExpiresByType text/javascript "access plus 1 day"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 week"
</LocationMatch>
这只是做不适合我。我没有为我指定的内容使用过期日期标题。我也不明白当你有两个LocationMatch
指令重叠,第一个优先?
能否请你给我一个例子吗? – 2009-10-21 15:55:26
是否意味着他应该把get.json放在/ mysite/*之后? – 2009-10-22 08:23:04