PHP JSON Headers


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. header('Cache-Control: no-cache, must-revalidate');
  2. header('Expires: '.date('r',time()-86400));
  3. header('Content-type: application/json');

Report this snippet


Comments


You need to login to view comments.