Problems with MSIE caching CSS

J

JDS

I have a strange problem in that MSIE seems to not load my stylesheet
until you click the "reload" button or press F5 (or hit CTRL-R).

Example page:

http://engineering.jhu.edu/~nuggets/

It works fine in Gecko-based browsers.

Does anyone else using MSIE 6 see my problem? Or is it just me? When you
go to the page the first time it might work... Try clicking any link on
the page and you will see what happens (i hope).

What happpens to me is that MSIE just "forgets" the CSS or doesn't load
the stylesheet or *something* until you then reload the page.

Thanks!
 
J

Jedi Fans

JDS said:
I have a strange problem in that MSIE seems to not load my stylesheet
until you click the "reload" button or press F5 (or hit CTRL-R).

Example page:

http://engineering.jhu.edu/~nuggets/

It works fine in Gecko-based browsers.

Does anyone else using MSIE 6 see my problem? Or is it just me? When you
go to the page the first time it might work... Try clicking any link on
the page and you will see what happens (i hope).

What happpens to me is that MSIE just "forgets" the CSS or doesn't load
the stylesheet or *something* until you then reload the page.

Thanks!
the title should always be the first entry in the head section
 
J

JDS

the title should always be the first entry in the head section

Thanks, I tried it, but nope. That didn't seem to fix it.

I doubt that <title> has to be the first thing anyways, unless that is a
known MSIE bug. There is no requirement to put <title> first in the HTML
specifications that I know of.
 
L

Leonard Blaisdell

JDS said:
Ah, i see. But that link is only applying this rule to SEO, and not to the
caching problem I am having.

Or someone's interpretation of SEO :)
Thanks anyways.

I had a problem with MSIE on a site I built in the last couple of years
that was never even replied to in alt.html or ciwas. I diddled it till I
had no complaints from my customer but probably lost functionality. It
was an MSIE failure to read my stylesheet on a back-button and regarded
an unordered-list with CSS blinkenlights used as a menu. It's probably
not related, but I smelled being there before.

leo
 
N

Neredbojias

With neither quill nor qualm, JDS quothed:
I have a strange problem in that MSIE seems to not load my stylesheet
until you click the "reload" button or press F5 (or hit CTRL-R).

Example page:

http://engineering.jhu.edu/~nuggets/

It works fine in Gecko-based browsers.

Does anyone else using MSIE 6 see my problem? Or is it just me? When you
go to the page the first time it might work... Try clicking any link on
the page and you will see what happens (i hope).

What happpens to me is that MSIE just "forgets" the CSS or doesn't load
the stylesheet or *something* until you then reload the page.

The only thing I see: why do you put a slash in front of the pathname?

If you have to go up a directory, it's: '../'. Otherwise, a child
folder is addressed directly without the slash. Sometimes the slash can
mean 'ET go home' which on a server may be beyond your actual website
directory.

Also, I personally don't capitalize my "rel's" and "type's", etc.
 
J

Jedi Fans

Leonard said:
Or someone's interpretation of SEO :)


I had a problem with MSIE on a site I built in the last couple of years
that was never even replied to in alt.html or ciwas. I diddled it till I
had no complaints from my customer but probably lost functionality. It
was an MSIE failure to read my stylesheet on a back-button and regarded
an unordered-list with CSS blinkenlights used as a menu. It's probably
not related, but I smelled being there before.

leo
try giving your stylesheet a title? for example:
<link rel="stylesheet" type="text/css"
href="/~nuggets/include/css/website.css" title="Default" />
 
L

Leonard Blaisdell

Jedi Fans said:
Leonard Blaisdell wrote:
try giving your stylesheet a title? for example:
<link rel="stylesheet" type="text/css"
href="/~nuggets/include/css/website.css" title="Default" />

I'll save your suggestion for future reference in case the problem
occurs again.

leo
 
J

Jedi Fans

Leonard said:
I'll save your suggestion for future reference in case the problem
occurs again.

leo
did it get fixed then? [regardless i do seem to be missing a lot of
posts :|]
 
L

Leonard Blaisdell

Jedi Fans said:
Leonard said:
I'll save your suggestion for future reference in case the problem
occurs again.

leo
did it get fixed then? [regardless i do seem to be missing a lot of
posts :|]

No, no. I solved the problem to the customer's satisfaction a year or
two ago. I'd have to redo some CSS and HTML that I don't remember
changing right now. They'd be unlikely to pay for my sudden brilliance
in case your solution worked. Status quo.
But next time...

leo
 
J

Jedi Fans

Leonard said:
Jedi Fans said:
Leonard said:
I'll save your suggestion for future reference in case the problem
occurs again.

leo
did it get fixed then? [regardless i do seem to be missing a lot of
posts :|]

No, no. I solved the problem to the customer's satisfaction a year or
two ago. I'd have to redo some CSS and HTML that I don't remember
changing right now. They'd be unlikely to pay for my sudden brilliance
in case your solution worked. Status quo.
But next time...

leo
kk
 
J

JDS

The only thing I see: why do you put a slash in front of the pathname?

The absolute path name? Is that what you mean?

It is actually in response to my templating system (on the backend) and
results in more reliable and portable pages for me than using relative
URLs. I could go into more detail if you like, but it is a bit OT.
 
J

JDS

try giving your stylesheet a title? for example:

Didn't work. Thanks.

Any other suggestions?

Incidentally, is anyone else seeing this problem as described in MSIE 6?

thanks!
 
R

Rincewind

Didn't work. Thanks.

Any other suggestions?

Incidentally, is anyone else seeing this problem as described in MSIE 6?

thanks!

It looks almost the same to me the only differnce I see, is that the text
size is larger in the IE version,
 
J

JDS

It looks almost the same to me the only differnce I see, is that the text
size is larger in the IE version,

Well, the actual problem was that the CSS file was not getting loaded at
all when clicking on links inside the pages, only on a forced reload (F5).

I've fixed the problem but I had to include the CSS in-line to do it. A
sucky fix, if you ask me.

thanks for the help, usenet denizens.
 
J

Jedi Fans

JDS said:
The absolute path name? Is that what you mean?

It is actually in response to my templating system (on the backend) and
results in more reliable and portable pages for me than using relative
URLs. I could go into more detail if you like, but it is a bit OT.
in addition to this: /folder/file.css means that it doesnt matter which
folder the document you are viewing is on, it will always go to the root
[aka the domain/subdomain] and work its way back up the directory
structure from there
 
R

Rincewind

Well, the actual problem was that the CSS file was not getting loaded at
all when clicking on links inside the pages, only on a forced reload (F5).

I've fixed the problem but I had to include the CSS in-line to do it. A
sucky fix, if you ask me.

thanks for the help, usenet denizens.

are you sure the problem exists :))
when I looked at the page before, either by using the F5 button or the back
button in the browser there was no difference the page renders nicely.

Exactly the same as it does now.

BTW why have you Commented the css details as well as adding them in a
style tag.
 
J

JDS

are you sure the problem exists :))
when I looked at the page before, either by using the F5 button or the back
button in the browser there was no difference the page renders nicely.

Exactly the same as it does now.

BTW why have you Commented the css details as well as adding them in a
style tag.

Well, as far as the problem existing, I see it on two different computers.
But no one else has said they are seeing it -- maybe I'm going batty.


The comments are there so I can put the thing back the way it was if I
decode to later. Nothing more.
 
N

Neredbojias

With neither quill nor qualm, Jedi Fans <"news[at]jedifans[--=dot==-]
com"> quothed:
in addition to this: /folder/file.css means that it doesnt matter which
folder the document you are viewing is on, it will always go to the root
[aka the domain/subdomain] and work its way back up the directory
structure from there

That was my point. The root of a "website" is not always the "main"
website directory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top