-1

Why this error is happening? Code is as follows:

<?php
header('Cache-Control:no-cache,must-revalidate,max-age=0');     
?>
ishegg
  • 9,685
  • 3
  • 16
  • 31
tassawar
  • 33
  • 2

1 Answers1

0

You can try following:

<?php

header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>

Note that the exact headers used will depend on your needs (and if you need to support HTTP 1.0 and/or HTTP 1.1)

Jayveer Parmar
  • 500
  • 7
  • 25