Force browser to refresh css, javascript, etc

前端 未结 16 1848
花落未央
花落未央 2020-11-29 19:16

I\'m developing a website based on Wordpress source code through XAMPP. Sometimes I change the CSS code, scrips or something else and I notice my browser takes time to apply

16条回答
  •  野性不改
    2020-11-29 20:04

    Check this: How Do I Force the Browser to Use the Newest Version of my Stylesheet?

    Assumming your css file is foo.css, you can force the client to use the latest version by appending a query string as shown below.

    
    

提交回复
热议问题