Just as a follow-up with another detail...

I forgot to say that I'm also loading the css file with a bogus, 
random argument, thinking that that will trick the browser into 
thinking this is a new file, and to not load any cached styles, if 
that is indeed what it's doing, ie; _sitestyle.css?t=561

Needless to say the trick doesn't work.

Michael


At 11:11 AM 5/26/2006, Mik Muller wrote:
>I don't know if it's a browser caching thing, but I've got a weird situation.
>
>I've written a pretty cool style-editing tool into an app of mine
>that databases the values etc. and manages an accompanying .css file.
>It works like this: when you edit the styles, it saves the values to
>the db and then deletes the css file. Upon the loading of the next
>page different code sees that the .css file is missing and
>regenerates it. This way I can deploy this code across multiple sites
>that may not have a css file yet and simply the act of loading a page
>will generate the file. Also, when editing, all I have to do is
>delete the file... the site itself will take care of regenerating the file.
>
>For some reason, though, the file doesn't always delete/write.
>Sometimes it will and sometimes it won't. And even though I've
>written code in to alert me if an attempt to delete the file fails
>(ie; delete the file, then check to make sure it's truly no longer
>there), I never get an alert. The code thinks the file was deleted
>and upon page load the code thinks the file was created. However, no
>matter what I do -- directly accessing the css file through the
>browser, clicking submit several times to register my aggravation --
>the style sheet won't regenerate. I can click around the site to
>different pages to see if maybe the browser is caching the style
>sheet for the one page I'm on. No go. Nothing changes. Then sometimes
>I'll sit for a minute or two and then load another page and wham --
>the css file will have changed.
>
>So, am I going crazy? Is it a browser thing (caching the style sheet
>even though I hit Shift-Refresh) or could it be the server OS is
>back-logged? The server has a lot of file upload / download activity.
>
>All I can think of is that CF has a special relationship with the OS
>and can see that the file was actually deleted and then re-created,
>but that IO activity somehow isn't being reported to IIS and thus the
>rest of the developed world. Perhaps IIS is caching the css?
>
>Anyone else have this experience? It's driving me to think I
>shouldn't make a file but instead cache a query and shove the styles
>into the HTMl document directly, which I'd prefer not to do.
>
>Michael
>
>
>
>
>--------
>Michael Muller
>Admin, MontagueMA.net Website
>work (413) 863-0030
>cell (413) 320-5336
>fax (518) 713-1569
>skype: michaelBmuller
>email [EMAIL PROTECTED]
>http://www.MontagueMA.net
>
>Eschew Obfuscation
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5959
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to