JSON 响应最标准的 HTTP 头
header( 'Content-Type: application/json' );header( 'Pragma: no-cache' );header( 'Cache-Control: no-cache, no-store, max-age=0' );header( 'Expires: 1L' );
取自 spring 框架中的
MappingJacksonView
发布时间: 2012-08-30 09:55:54 作者: rapoo
JSON 响应最标准的 HTTP 头
header( 'Content-Type: application/json' );header( 'Pragma: no-cache' );header( 'Cache-Control: no-cache, no-store, max-age=0' );header( 'Expires: 1L' );