Advertisement
chernov2000

Отключить кэширование на PHP

Jun 25th, 2021
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. //set headers to NOT cache a page
  3. header("Cache-Control: no-cache, must-revalidate"); //HTTP 1.1
  4. header("Pragma: no-cache"); //HTTP 1.0
  5. header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
  6. // Вставить до секции <head>
  7. ?>
  8.  
  9.  
  10. <head>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement