nginx的location ~ .*.(?:htm|html)${root jimei-admin expires -1;add_header Cache-Control "private...

在 Apache 中,您可以使用以下代码实现与上述 Nginx 配置类似的效果:

".*\.(htm|html)$">
  Header set Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate"
  ExpiresActive On
  ExpiresDefault -1

注意:在 Apache 中,Header 指令用于设置响应头信息,而 Expires 指令用于设置页面缓存。

你可能感兴趣的:(apache,nginx,服务器,java,前端)