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

你可能感兴趣的:(json)