Quantcast
Channel: Bugtreat Blog » webdevelopment
Viewing all articles
Browse latest Browse all 6

Caching HTTP Headers in PHP

$
0
0
Page caching is very important for a website as it speeds up repeated page views and saves a lot of traffic by preventing downloading content every page view. You can implement page caching by setting PHP header’s Cache-Control: max-age… property. The Cache control property will inform browser that the component won’t be changed for defined period. This will avoid unneeded further requests if browser already has the component in its cache. Most of modern browsers cache static files even without any cache control headers but if we can do it more efficiently by defining headers. Here we will discuss how to control browser caching. First we will check whether page is cached or not. So make sure that the page …

Viewing all articles
Browse latest Browse all 6

Trending Articles