Results 1 to 5 of 5

Thread: CSS

  1. #1

    muso's Avatar
    Member Since
    Jan 15, 2003
    Location
    Whangarei, New Zealand
    Posts
    2
    Specs:
    Pwnt
    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.

  2. #2
    meerk
    Guest
    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ů

  3. #3

    muso's Avatar
    Member Since
    Jan 15, 2003
    Location
    Whangarei, New Zealand
    Posts
    2
    Specs:
    Pwnt
    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.

  4. #4
    urbandyke
    Guest
    you could use an include (either ssi or php) for the styles in the head if it's for practicality.

  5. #5

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I need a little help with some CSS
    By benparko in forum Web Design and Hosting
    Replies: 8
    Last Post: 09-30-2010, 04:31 PM
  2. Can someone help me with CSS?
    By vicariousgeorge in forum Web Design and Hosting
    Replies: 6
    Last Post: 10-17-2007, 08:40 PM
  3. Need CSS Expert please :)
    By Lewwy in forum Web Design and Hosting
    Replies: 4
    Last Post: 07-10-2007, 01:05 PM
  4. css encryption
    By schwine in forum Movies and Video
    Replies: 1
    Last Post: 08-22-2006, 06:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •