homepage Welcome to WebmasterWorld Guest from 54.196.168.78
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Refresh Cache for site redesign
rwilson




msg:4492025
 6:10 pm on Sep 6, 2012 (gmt 0)

I have just redesigned my website and I keep getting complaints that there is just text and no styles. People aren't hitting refresh to reload the style sheets. Is there any way I can force that refresh?

Thanks!

 

lucy24




msg:4492073
 9:35 pm on Sep 6, 2012 (gmt 0)

People aren't hitting refresh to reload the style sheets.

Well, you can't expect them to. It isn't normal user behavior. (See current thread elsewhere about average user's level of know-how ;)) And afaik there is no way to retroactively change cache/expiration information for material that has already been downloaded, since that's the whole point of local caching.

But why are they getting no styles at all? I'd expect them to see new pages with old styles, if anything. Did the site redesign include renaming and/or moving the stylesheet?

rwilson




msg:4492095
 10:12 pm on Sep 6, 2012 (gmt 0)

Exactly, not that I expect them to know that, just that's all thats needed to resolve it. I did rename the main style sheet. I know my server doesn't have proper expiration settings yet. Out of 140+ fellow employees, I've only heard from a few with this problem. Maybe this isn't that common? I haven't been able to replicate it.

Leosghost




msg:4492101
 10:22 pm on Sep 6, 2012 (gmt 0)

just rename the new stylesheet and do the same, in the source of your html....when the page calls it ..voila !:)

rwilson




msg:4492104
 10:37 pm on Sep 6, 2012 (gmt 0)

Cool I will try that! My main sheet is named the same as a secondary sheet on the old site... I had called it common.css on the previous site along with several other bulky style sheets. common.css is now my main style sheet. That may have caused some issues. Thanks!

lucy24




msg:4492179
 3:40 am on Sep 7, 2012 (gmt 0)

I had called it common.css on the previous site along with several other bulky style sheets. common.css is now my main style sheet. That may have caused some issues.

Oh, ouch, yes. Browser sees a request for filename.css, checks its cache, establishes that it hasn't expired yet-- and has no way of knowing that filename.css now applies to a completely different thing. Better to do like leo says and rename everything. Then the browser will be forced to reload.

rwilson




msg:4492540
 9:28 pm on Sep 7, 2012 (gmt 0)

That did it! Thanks! Was able to replicate it and verify that it's fixed. I'm adding dates to my file names for future updates

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved