Pak Jiddat

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. PrivateTmp systemd option prevents access to tmp folder
  2. Generating free SSL certificate from LetsEncrypt on localhost
  3. INADEQUATE_SECURITY - SSL Cipher problems with HTTP2
  4. Making HTTP POST requests from Google Chrome
  5. Increasing web server timeout
  6. Redirect http to https with Apache
  7. Creating and Installing Apache Self Signed Certificate
  8. Using flags with rewrite rule
  9. Redirecting without mod_rewrite using regular expressions in htaccess
  10. Generate Certificate Signing Request (CSR) for ssl certificates
  11. Disabling output buffering with mod_fcgid
  12. Configuring Apache mod status
  13. Allowing Cross Origin Requests using htaccess
  14. Redirect http to https with Nginx
  15. Blocking visitors by http method using LimitExcept Apache directive
  16. Access control directives for Apache
  17. Passing query parameters to proxy server in Nginx
  18. Use of Preflight request in HTTP Cross Origin Resourse Sharing (CORS)
  19. Using RewriteCond directives
  20. Fetching Gzip content with Php Curl
  21. Installing latest version of Php
  22. Displaying contents of an array in NXM html table
  23. Generate Url query strings using http_build_query
  24. Executing Php code using eval
  25. Fixing timeout problems with Php scripts on Plesk
  26. Php 7 error handling
  27. Check if session has been started in Php
  28. Installing memcached for Php 7
  29. What is the difference between a PHP interpreter and a PHP handler?
  30. Used to execute shell commands
  31. Getting http request method in php
  32. Set Cookie using Php
  33. Using array_rand and shuffle functions
  34. Using Usort function for sorting Arrays
  35. Php function isset returns false for null values