Image has a cache case, the picture name is unchanged, the link is unchanged, only the picture changes, how to know the picture changes need to update the picture?

Source: Internet
Author: User

Since the picture is written to the cache, then you request data, you must first from the cache to see, the cache has no this picture, if there is to read from the cache image information, not networking. This is the normal way of thinking, but now the picture is updated. But you cache is still in, this is you request data, go cache read, cache or have picture, so you can't go to Network load. So your picture is still cached and cannot be updated.

So since there is a local cache, the cache does not time out, even if the background updates the picture, we can not get the latest, unless the cache time-out or the user cleared the cache, so that the network, this time to get a new picture. Otherwise, I think it is impossible to get a new picture, which is contradictory.

Image has a cache case, the picture name is unchanged, the link is unchanged, only the picture changes, how to know the picture changes need to update the picture?

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.