Are you facing with browser cache problem..? Use this trick
The reason why browsers are able to cache a particular document is due to the url being passed to the browser are identical. In order to make it unique for each passes, we can place in a random number behind the url as shown below,
which is being reflected on your latest modifications
For Example .php files
For css extension files
<link rel="stylesheet" href="css/style.css?r=<?=time()?>"/>
For .js files
<link rel="stylesheet" href="css/main.js?r=<?=time()?>"/>
For image files
<img src="images/imagename.jpg?r=<?=time()?>"/>
You can also disable or stop caching using the following meta tag, (This is for static website .html files only)
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
For assistance connect me manikantak49@gmail.com
0 comments:
Post a Comment