What does nocache in php mean? & lt; imgsrc = & quot; img/captcha. php? Nocache = & lt ;? Phpechotime ();? & Gt; & quot; alt = & quot;/& gt; what does nocache mean when a verification code is generated? what does nocache in captcha php mean?
What does nocache in "alt =" "/> mean?
This is a statement for generating the verification code. captcha. php is the script for generating the verification code.
However, the comment in the following link is: random parameters are generally set to prevent the page from being cached.
Http://topic.csdn.net/u/20090703/15/baf5169e-87f0-478f-8e77-7ae5963d9925.html
I don't understand this sentence
------ Solution --------------------
If the browser enables caching, it usually caches images of the same url. the cached files will be directly displayed next time you access images of the same url.
Since this is a verification code, you certainly do not want to refresh the page and it remains unchanged. Therefore, a random number is added to the url.
------ Solution --------------------
The browser may cache the same url (especially when IE is doing ajax), add To avoid the same url. This prevents caching. This is probably the meaning.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service