在Apache中,您可以使用以下代码转换伪静态nginx的location ~ .*.(?:htm|html)$配置:
<FilesMatch"\.(htm|html)$">
Header set Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate"
ExpiresActive On
ExpiresDefault "access plus -1 seconds"
</FilesMatch>
在Apache中,您可以使用以下代码转换伪静态nginx的location ~ .*.(?:htm|html)$配置:
<FilesMatch"\.(htm|html)$">
Header set Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate"
ExpiresActive On
ExpiresDefault "access plus -1 seconds"
</FilesMatch>