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
  16. Making HTTP POST requests from Google Chrome
  17. Increasing web server timeout
  18. Redirect http to https with Apache
  19. Creating and Installing Apache Self Signed Certificate
  20. Using flags with rewrite rule
  21. Redirecting without mod_rewrite using regular expressions in htaccess
  22. Generate Certificate Signing Request (CSR) for ssl certificates
  23. Disabling output buffering with mod_fcgid
  24. Configuring Apache mod status
  25. Allowing Cross Origin Requests using htaccess
  26. Redirect http to https with Nginx
  27. Blocking visitors by http method using LimitExcept Apache directive
  28. Access control directives for Apache
  29. Passing query parameters to proxy server in Nginx
  30. Use of Preflight request in HTTP Cross Origin Resourse Sharing (CORS)
  31. Using RewriteCond directives