Preventing Caching of CSS Files

后端 未结 6 434
攒了一身酷
攒了一身酷 2020-11-27 20:28

I am developing a simple website using PHP.

Development Configuration : WAMP

Production Configuration : LAMP

While

6条回答
  •  借酒劲吻你
    2020-11-27 20:49

    1. Apache (-modules) can cache ressources, but that is not your current problem.
    2. Either disable your browsercache, flush cache on reload or deliver css with modded headers. You could write a script that sets expiry header so that your browser will have to get a fresh version of your css.

    Anyhow I'm not getting the point in that. For development it's way easier to just disable your browsercache or hit Ctrl + r.

提交回复
热议问题