How to use browser caching

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 19 Mar 2014, 11:47

How to use browser caching

19 Mar 2014, 11:48

The .htaccess file looks like this below. I've never really seen an .htaccess that looks like this.

Not sure what language or what code base it's using. What I would like to do is caching that looks like this:

http://gtmetrix.com/leverage-browser-caching.html

http://i.imgur.com/WEQuSR7.png

Code: Select all
   # Helicon ISAPI_Rewrite configuration file
   # Version 3.1.0.72

   RewriteEngine On
   RewriteCompatibility2 On
   RepeatLimit 20
   RewriteBase

   #  Block external access to the httpd.ini and httpd.parse.errors files
   RewriteRule ^/httpd(?:\.ini|\.parse\.errors)$ / [NC,F,O]

   #  Block external access to the Helper ISAPI Extension
   RewriteRule ^.*\.isrwhlp$ / [NC,F,O]

   # Fix missing slash char on folders
   RewriteRule ^([^.?]+[^.?/])$ $1/ [R,L]
   RewriteRule /default.aspx / [r=301]

   ##################
   # Custom Rules #
   ##################

   # product link, these rules handle links like: http://www.ulla.com/FriendlyUrlName/p/111
   RewriteRule /([^/]*)/p/([^/]*)/ /Product\.aspx\?p=$2 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4&$5=$6 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4&$5=$6 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4&$5=$6&$7=$8 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4&$5=$6&$7=$8 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4&$5=$6&$7=$8&$9=$10 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4&$5=$6&$7=$8&$9=$10 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/ /Product\.aspx\?p=$2&$3=$4&$5=$6&$7=$8&$9=$10&$11=$12 [I,QSA]
   RewriteRule /([^/]*)/p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.*) /Product\.aspx\?p=$2&$3=$4&$5=$6&$7=$8&$9=$10&$11=$12 [I,QSA]

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: How to use browser caching

19 Mar 2014, 16:17

ISAPI_Rewrite does not support Browser Caching. HeliconApe does, please look at http://www.helicontech.com/ape/doc/mod_ ... iresActive
We have quite a few article on our web-site. Just enter "caching" in the search bar

Regards

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests