
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to programmatically empty browser cache with HTML?
You can tell your browser not to cache your page by using the following meta tags −
<metahttp-equiv = 'cache-control' content = 'no-cache'> <metahttp-equiv = 'expires' content = '0'> <metahttp-equiv = 'pragma' content = 'no-cache'>
In addition, try the following: Append a parameter/string to the filename in the script tag. Change it when the file changes.
<scriptsrc = "newfile.js?version = 1.0.0"></script>
Then the next time you update the file, just update the version i.e.
<scriptsrc = "newfile.js?version = 1.0.1"></script>
- Related Articles
- HTML5 applicationCache vs Browser Cache
- Ember.js browser support with HTML
- Disable browser caching with meta HTML tags
- How can I make a browser to browser (peer to peer) connection in HTML?
- Programmatically opening URLs in a web browser in Python (tkinter)
- How to start selenium browser with proxy?
- How to launch Edge browser with Selenium Webdriver?
- Open a file browser with default directory in JavaScript and HTML?
- How to create empty circles with CSS?
- How to take pictures with camera on Android Programmatically?
- How to create a browser window example with CSS?
- How to Close Browser Tabs With a Keyboard Shortcut?
- Using Redis Cache with Spring Boot
- How to detect the browser's format for HTML input type date
- Several distinct caches for a single URL in HTML Cache?

Advertisements