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

Data Flow Diagram (DFD)

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

flexigrid + php with add and edit button