www.webdeveloper.com
Results 1 to 2 of 2

Thread: Givin costume cache settings to directory in .htaccess

  1. #1
    Join Date
    Dec 2005
    Location
    Lillehammer, Norway
    Posts
    215

    Givin costume cache settings to directory in .htaccess

    Hi,

    How do I set costume cache settings for a directory (say /lib/css/) in Apache's .htaccess configuration file?

    Please show me an example! I have tried searching the Web, but I only came up with really hard to understand guides with no good examples.

    Thanks in advance,

  2. #2
    Join Date
    Dec 2005
    Location
    Lillehammer, Norway
    Posts
    215
    What is wrong with this? It gives a 500 error message.

    Code:
    ExpiresActive On
    <Directory "/home/content/html/lib/images/">
    	AllowOverride Indexes
    	ExpiresDefault "access 3 months"
    </Directory>
    <Directory "/home/content/html/lib/script/">
    	AllowOverride Indexes
    	ExpiresDefault "access 3 months"
    </Directory>
    <Directory "/home/content/html/lib/style/">
    	AllowOverride Indexes
    	ExpiresDefault "access 5 weeks"
    </Directory>

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles