5 5 Votes

Reload images and web pages despite browser cache

Tip by Stefan Trost | 22/04/2012 at 22:14

The caching of content through the browser is very useful and reasonable, but sometimes it is disturbing. For example, if we have updated individual images or pages and we want them to be reloaded anyway and in either case.

Quickly and easily we solve the problem by attaching an arbitrary parameter to the links and images:

<a href="page">Old Page</a>
<a href="page?d=12">Updated Page</a>
<img src="image.jpg" alt=Old Image">
<img src="image.jpg?d=12" alt="Updated Image">

The parameter - what we take does not matter - ensures that the pages and images are not loaded from the cache, but reloaded from your webspace. For images and pages that have not changed, we just leave off the parameter, so that the cache can be used.

ReplyPositiveNegative

About the Author

Avatar AuthorYou can find Software by Stefan Trost on sttmedia.com. Do you need an individual software solution according to your needs? - sttmedia.com/contact
Show Profile | Message

 

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own articles on askingbox.com. How to do.