By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

CSS Parameter Sending issue

P: 1
http://www.bbc.co.uk/606/2/refresh/css/1/styles.css

The above file contains : @import "main.css?20061116";
The above line.
I can understand the meaning of import statement but what is next to it---- ?20061116

and How to use this kind of statement while designing the CSS code ?
can any one will give me example?

Thanks and Regards,
Shirish
Jan 7 '08 #1
Share this Question
Share on Google+
1 Reply


P: 26
It's not next to it, its part of the web address. ? starts the query portion of the URL. If you submit a search on google, you type something like "dog sweatshirts" into the search box (which is named q in the html source code) it will submit to a page like www.google.com?q=dog+sweatshirts

It is meant as a way of passing data to the server so it can do some kind of processing and return a dynamically created page.

Now as to why they do it on bbc's website. They probably ignore ?20061116. You could enter anything after main.css? or nothing at all and it will go to the same main.css page. The reason they do it is that browsers will cache main.css and even if they change the css, some browsers may never check for the new version. So if they update the file they also update this link to use a new date like @import "main.css?20070107, and all browsers that will see that this is not the same file they have in their cache and they will refetch it.
Jan 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.