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
Every time your cronjob or webpage is executed, the __random__ keyword will be replaced with a random number, e.g.
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.