nginx去掉304 Not Modified

简介 nginx去掉304NotModified,在nginx配置如下:location/{expires-1;if_modified_sinceoff;add_headerLast-Modified"";add_headerCache-Controlno-cache;etagoff;......}

nginx去掉304 Not Modified,在nginx配置如下:

  1. location / {

  2. expires -1;

  3. if_modified_since off;

  4. add_header Last-Modified "";

  5. add_header Cache-Control no-cache;

  6. etag off;

  7. ......


}

Top Top