grunt-asset-cachebuster
Version:
Cachebust images, scripts and other assets in your HTML & CSS files.
27 lines (26 loc) • 900 B
HTML
<html>
<head>
<title>test</title>
<script src="test.js?v=123456"></script>
<script>
console.log('testing');
</script>
<link href="test.css?v=123456" rel="stylesheet">
<link href="//cdn.1.test.com/test.css?v=123456" rel="stylesheet">
</head>
<body>
<img src="testing.png?v=123456" alt="">
<img src="testing.gif?v=123456" alt="">
<img src="testing.jpg?v=123456" alt="">
<img src="testing.jpeg?v=123456" alt="">
<img src="testing.svg?v=123456" alt="">
<svg width="100%" height="100%" viewBox="0 0 100 100"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<image xlink:href="testing.png?v=123456" x="0" y="0" height="100" width="100"/>
</svg>
<script src="test2.js?v=123456"></script>
<script src="//cdn.2.test.com/test2.js?v=123456"></script>
</body>
</html>