setting cache control pada php

 <?php  
  //set headers to NOT cache a page  
  header("Cache-Control: no-cache, must-revalidate"); //HTTP 1.1  
  header("Pragma: no-cache"); //HTTP 1.0  
  header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past  
  //or, if you DO want a file to cache, use:  
  header("Cache-Control: max-age=2592000"); //30days (60sec * 60min * 24hours * 30days)  
 ?>  

Comments

Popular posts from this blog

Review Pemakaian Lenovo K900 Mati Total (Matot)

VERIFIKASI SUARA MENGGUNAKAN METODE MFCC DAN DTW MENGGUNAKAN METODE MFCC DAN DTW (BAB II TINJAUAN PUSTAKA)

cara daftar di DMOZ