To avoid cache, i included my css and js files through script tag.It generates a random number which will be added as query string to the files.
<script>document.write('<link rel="stylesheet" href="css/style.css?dev=' + Math.floor(Math.random() * 100) + '"/>');</script>
But most of times, when i hit the url, instead the html page, the css file is getting print directly in the browser
is the content header is causing the issue, should i need to add "type" parameter for css> Please provide me a soultion