How to prevent CSS caching on a web page?

后端 未结 9 1861
你的背包
你的背包 2020-12-14 17:42

I am learning to develop xhtml, css web pages. Often I am doing changes in CSS but it do not reflect on page because of browser cacheing and if I manually clear cahceing it

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 18:10

    instead of writing tag using html just use php code. inside tag at the end use php mt_rand() function which will produce a random number and thus your stylesheet will never get cached. "; ?>

提交回复
热议问题