UNPKG

grunt-asset-cachebuster

Version:

Cachebust images, scripts and other assets in your HTML & CSS files.

27 lines (26 loc) 889 B
<!doctype html> <html> <head> <title>test</title> <script src="test.js?v=0.2.0"></script> <script> console.log('testing'); </script> <link href="test.css?v=0.2.0" rel="stylesheet"> <link href="//cdn.1.test.com/test.css?v=0.2.0" rel="stylesheet"> </head> <body> <img src="testing.png?v=0.2.0" alt=""> <img src="testing.gif?v=0.2.0" alt=""> <img src="testing.jpg?v=0.2.0" alt=""> <img src="testing.jpeg?v=0.2.0" alt=""> <img src="testing.svg?v=0.2.0" 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=0.2.0" x="0" y="0" height="100" width="100"/> </svg> <script src="test2.js?v=0.2.0"></script> <script src="//cdn.2.test.com/test2.js?v=0.2.0"></script> </body> </html>