Using Expires directive for frill images directory.
4 posts
• Page 1 of 1
Using Expires directive for frill images directory.
I am trying to apply the Expires Header on all images that exists und /stylesheet folder. But unfortunately can't find an help.
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Using Expires directive for frill images directory.
Hello,
The RewriteHeader directive is described here - http://www.helicontech.com/isapi_rewrite/doc/RewriteHeader.htm
Regards
Andrew
The RewriteHeader directive is described here - http://www.helicontech.com/isapi_rewrite/doc/RewriteHeader.htm
Regards
Andrew
Re: Using Expires directive for frill images directory.
Thank you for your response.
If i try to cache the images saved un stylesheets folder for one month, will it be OK if I write my rules like
If i try to cache the images saved un stylesheets folder for one month, will it be OK if I write my rules like
- Code: Select all
RewriteCond %{REQUEST_URI} stylesheets/.*\.(gif|jpg|png) [NC]
RewriteHeader Expires : A2592000
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Using Expires directive for frill images directory.
It seems like you night a slightly different one.
You need to set up response header Cache-Control: max-age=2592000,public, but ISAPI_Rewrite can't do it.
You can d it using either HeliconApe, or in IIS for the stylesheets folder by creating a custom response header.
Regards
Andrew
You need to set up response header Cache-Control: max-age=2592000,public, but ISAPI_Rewrite can't do it.
You can d it using either HeliconApe, or in IIS for the stylesheets folder by creating a custom response header.
Regards
Andrew
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests