Portal Home > Knowledgebase > Articles Database > How to optimize browser cache to speed up my site?


How to optimize browser cache to speed up my site?




Posted by sash_007, 01-09-2010, 11:06 AM
Hello friends, I am newbie in php so i need help just came across a code which i got from this article which says its used to expire browser cahe after particular time so where do i put this code to make it work

Posted by mattle, 01-11-2010, 12:27 PM
You need to put this before any other output is sent to the browser. To be sure of this, make sure you turn on error_reporting (you'll receive a message like "headers already sent at line x" if you're trying to send more headers after you've already sent content). There are also Firefox plug-ins that will let you view headers to verify that they are being sent correctly.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
H-sphere resellers (Views: 589)
Auto-Reg (Views: 590)