Pak Jiddat - Innovative Software Services

Read: In the name of thy Lord Who createth, Createth man from a clot. Read: And thy Lord is the Most Bounteous, Who teacheth by the pen, Teacheth man that which he knew not. Nay, but verily man is rebellious That he thinketh himself independent!. Lo! unto thy Lord is the return. (Sura Alalaq 96:8)

Preventing browsers from caching content

Created On: 21 Aug, 2018: 18:35:30 - Tags : php | web servers

Url: https://stackoverflow.com/a/4485194/4508593

To prevent browsers from caching content such as RSS Feeds, the following Php code may be used:


header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

Related Articles

  1. Installing latest version of Php
  2. Displaying contents of an array in NXM html table
  3. Generate Url query strings using http_build_query
  4. Executing Php code using eval
  5. Fixing timeout problems with Php scripts on Plesk
  6. Php 7 error handling
  7. Check if session has been started in Php
  8. Installing memcached for Php 7
  9. What is the difference between a PHP interpreter and a PHP handler?
  10. Used to execute shell commands
  11. Getting http request method in php
  12. Set Cookie using Php
  13. Using array_rand and shuffle functions
  14. Using Usort function for sorting Arrays
  15. Php function isset returns false for null values