Posted By

michaelfox on 04/10/09


Tagged

header textmate json cache


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Jdub7
xmartyxcorex


json header in php


 / Published in: PHP
 

  1. ini_set('display_errors', 0);
  2. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
  3. header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
  4. header("Cache-Control: no-cache, must-revalidate" );
  5. header("Pragma: no-cache" );
  6. header("Content-type: application/json");

Report this snippet  

You need to login to post a comment.