Css query string

Is it possible to pass a query string to a stylesheet, and if so, can the css process handle it?

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

I noticed that when viewing the source of basecamps in the stylesheet there is a query string, but I do not see how it can be used.

thanks

+3
source share
2 answers

Yes, you can pass the request: no simple CSS file can use it.

There are two reasons for this:

  • Css file dynamically generated
  • For version control, make sure that the browser always receives the latest version (for example, the identifier may be the last timestamp)
+10
source

, CSS, .

+2

Source: https://habr.com/ru/post/1709806/


All Articles