php - why and where we have to write header cache control? -


What is the meaning of writing these lines of code

  header ("cache-control : No-cache, sure-modify "); Header ("End: May, 17 May 1983 05:00:00 GMT \ n"); Header ("Last-Modified:" .GMDAT ("D, Dm YH: I: S"). "GMT");  

And do we have to write these lines of code? On the page where we deal with dabs or just do a php page?

Where do we write these lines of code? On the page on which we dubicate the database or just do any php page?

will display the data on any page that you do not want to cache because its content is changing quickly and continuously. If a page is not changing often, then you do not have to disable caching. Because this reduces the performance of your pages and increases the burden on your server. Caching is a good thing if it is necessary only disable it.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -