How to add random number to url

How to add random number to cron job url. Why browser-chrome is loading old page. Browser is not reflecting new changes on web page. How to prevent web server from caching script.

Reason is as below.

These days , Every user need quick loading of website which is directly linked with website performance.

To prevent browser from caching your script execution results, we should add random number to your URL using the keyword __random__

we can set up URLĀ  with this keyword like below

http://mysite.com/webpage.php?__random__

or

http://mysite.com/webpage.php?parameter=paramvalue&__random__

Every time your cronjob or webpage is executed, the __random__ keyword will be replaced with a random number, e.g.

http://yoursite.com/cron.php?10386840

or

http://yoursite.com/cron.php?name=value&10386840

There are more keywords can be used for generated random number like

__timestamp__ will return current Unix timestamp

__cronjob__ will return the cronjob ID

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.