Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15403 manish.sha 1
<IfModule mod_rewrite.c>
2
   RewriteEngine on
3
   RewriteRule    ^$ app/webroot/    [L]
4
   RewriteRule    (.*) app/webroot/$1 [L]
5
</IfModule>
6
 
7
<IfModule mod_expires.c>
8
<IfModule mod_headers.c>
9
<IfModule mod_env.c>
10
  <FilesMatch (\.js|\.css)$>
11
    ExpiresActive On
12
    # According to RFC 2616, "1 year in the future" means "never expire".
13
    # We change the name of the file's URL whenever its modification date
14
    # changes, so browsers can cache any individual JS or CSS URL forever.
15
    # However, since all JS and CSS URLs involve a ? in them (for the changing
16
    # name) we have to explicitly set an Expires header or browsers won't
17
    # *ever* cache them.
18
    ExpiresDefault "now plus 1 years"
19
    Header append Cache-Control "public"
20
  </FilesMatch>
21
 
22
  # This lets Bugzilla know that we are properly sending Cache-Control
23
  # and Expires headers for CSS and JS files.
24
  SetEnv BZ_CACHE_CONTROL 1
25
</IfModule>
26
</IfModule>
27
</IfModule>
28