Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
css file caching problem in firefox
Old 06-24-2010, 06:31 AM css file caching problem in firefox
Novice Talker

Posts: 13
Trades: 0
hi,

i have a wordpress based site, so the design is based on a css file.
it's exhibiting a very strange and annoying problem - in firefox (i tried 3 diffrent versions, all had the problem) the site loads just fine at first. but after about 10-15 loads of the site, the site takes very long to load, and no graphics is displayed. this can be solved temporarily by uninstalling FF and re-installing, but it always comes back. i looked at the site when it's not loading correctly with firebug, and the css tablet sais "There are no rules in this stylesheet."

i thought this problem was actually a problem with my installation of FF, but another user has complained about this happening to him, so it must be a problem with the site itself, or the css itself. i don't understand what could be causing this, but it seems to be some sort of caching problem. (the site works and caches fine in IE and chrome)

my site is:
www.ho-lo.co.il
(it's not in English)

like i said, to try and replicate the problem you would need to load the site multiple times (and maybe try again after an hour or two). if someone with more expirience could maybe try and look at the site with firebug or something, that would be great.

anyway, any insights as to what could be causing this would be great, this problem is driving me mad.
matan811 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-24-2010, 06:40 AM Re: css file caching problem in firefox
Average Talker

Posts: 16
Trades: 0
Have you tried validating your CSS with the W3C CSS Validator?? Just to see if there are any errors in there?

Also, make sure your image paths are correct.

Is the site fine in all other browsers? IE7/8, Chrome etc..
welshhuw is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 07:00 AM Re: css file caching problem in firefox
Novice Talker

Posts: 13
Trades: 0
i will try validating the css now, although like i said, it works fine at first.

the image paths are correct (again, they load fine the first 10-15 times), and yes, the site works fine in IE 7/8 and in chrome
matan811 is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 10:02 AM Re: css file caching problem in firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Are you using @import in your CSS file(s)?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 01:33 PM Re: css file caching problem in firefox
Novice Talker

Posts: 13
Trades: 0
hi ladynred,

i used to use @import in my css file, yes. a few weeks ago i changed it so that there would be no use of @import (to cut loading time) and the problem started after that. today, i tried to return to using the old css with the @import - and again, the first few loads were fine, but after that the problem returned and the css wasn't loaded.

could the fact that i used to have @import and then removed it be causing the problem? (although like i said, returning to the old css didn't help)
matan811 is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 07:46 PM Re: css file caching problem in firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
No, that wouldn't be the cause.

I guess I don't understand the problem, exactly. Who is going to sit there and hit re-load 10-15 times anyway? At some point, the browser is going to go back to the server to check for updated pages, refreshing 10-15 times in a row just might force that.

You could try the meta tag to control how often the page is cached.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-27-2010, 06:42 AM Re: css file caching problem in firefox
Novice Talker

Posts: 13
Trades: 0
it doesn't have to be someone hiting reload 10-15 times. it just has to be someone visiting the site a certain number of times over the course of a few days. two days ago i tried cleaning out the FF cach, and deleting manually too. i thought that solved the problem, as i entered the site a lot, and navigated netween pages without any problem. but today, when i loaded the site - again it loaded very slowly, and eventually didn't load the css again.

for some reason, after multiple visits, firefox just doesn't load the css.
matan811 is offline
Reply With Quote
View Public Profile
 
Old 06-27-2010, 10:01 AM Re: css file caching problem in firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
So use the meta cache tag and add some cache control to it. I really doubt this is a firefox issue. You must also consider that your site is graphics heavy, the home page alone is 445kb, not enormous with broadband, but for some might be slow. You also have 10 scripts running on the page.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-27-2010, 10:50 AM Re: css file caching problem in firefox
Novice Talker

Posts: 13
Trades: 0
it's true that the front page is heavy, but it's not that heavy. and even if it is, i still don't understand why it doesn't load the css.


anyways, how do i use the meta cache tag?
matan811 is offline
Reply With Quote
View Public Profile
 
Old 06-27-2010, 12:13 PM Re: css file caching problem in firefox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
meta cache-control

Is a http-equivalent (http-equiv) instruction which means it can be used to over-ride or replace HTTP Headers.

the syntax is
HTML Code:
<meta http-equiv="Cache-control" content="private|public|no-cache|no-store">
The RFC2616 HTTP/1.1 Header Fields
Scroll down to section 14.9
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-27-2010, 12:15 PM Re: css file caching problem in firefox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
But of course for IE you might have to do something a little different

http://support.microsoft.com/kb/234067


Yep I know this is about FF but people don't always read properly
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 06-27-2010 at 12:16 PM..
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to css file caching problem in firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.84445 seconds with 12 queries