New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

CSS


Post Reply New Thread Subscribe

 
Thread Tools
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
I love css

But.... does anybody know of a way I can stop the caching of the css file (it's linked to with the <link rel=> tag)? Do I have to put the whole thing in the head, or is there a way I can avoid that?

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks
meerk
Guest
 
Posts: n/a

Quote:
Originally Posted by muso
I love css :wub:

But.... does anybody know of a way I can stop the caching of the css file (it's linked to with the <link rel=> tag)? Do I have to put the whole thing in the head, or is there a way I can avoid that?
The best way to use CSS is to import it eg. <link rel="stylesheet" etc> OR the '@import' method (used primarily to avoid NS 4.0 users - doesn't like CSS)

This way it will override any CSS you put in your <head> tags. That's why it's called 'Cascading Style Sheets'

meerk…
QUOTE Thanks
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
Quote:
Originally Posted by meerk
The best way to use CSS is to import it eg. <link rel="stylesheet" etc> OR the '@import' method (used primarily to avoid NS 4.0 users - doesn't like CSS)

This way it will override any CSS you put in your <head> tags. That's why it's called 'Cascading Style Sheets'

meerk…
Yes, I am currently using <link rel="stylesheet...>. My problem is that the browser caches the file styles.css (referred to in the <link> tag).

No caching occurs if I embed the whole stylesheet in the head, but with a large stylesheet this is impractical if I want to change a global attribute.

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks
urbandyke
Guest
 
Posts: n/a

you could use an include (either ssi or php) for the styles in the head if it's for practicality.
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
No because cache is usually on the client side and not the server side.. which ssi and php are both server side.

You can send commands to the browser so that it will not cache the content, but since there are so many bugs in browsers.. it doesnt seem to work anymore.

Here is a page that has a decent breakdown:

http://www.htmlgoodies.com/beyond/nocache.html
QUOTE Thanks

Post Reply New Thread Subscribe


« Forms | Building a site »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
My first tableless CSS layout ChicoWeb Web Design and Hosting 17 01-18-2005 02:57 PM
Test of a simple CSS menu in IE5/Mac and Safari s_ivan10 Web Design and Hosting 4 10-02-2004 02:13 AM
Image placement with CSS dziner Web Design and Hosting 5 08-12-2004 08:38 PM
CSS and Mac slider Web Design and Hosting 7 04-23-2004 04:13 PM
CSS strangeness in Safari only!? stevenjohn Web Design and Hosting 1 03-29-2004 07:08 AM

All times are GMT -4. The time now is 02:46 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?