css query string

前端 未结 2 477
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 14:39

Is it possible to pass a query string into a style sheet and if so, can the css process it?

i.e. http://www.domain.com/css/somestyle.css?id=102992992

I notic

2条回答
  •  有刺的猬
    2021-01-20 14:44

    A query string can be used to ensure that clients don't use old, cached versions of the referenced CSS file rather than retrieving the latest version from the server.

提交回复
热议问题