Bug 12904: Add mod_expire to etc/koha-httpd.conf
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
This commit is contained in:
parent
43c67312a0
commit
f89a2bbdbe
|
|
@ -130,6 +130,14 @@
|
|||
RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L]
|
||||
</Directory>
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive on
|
||||
ExpiresByType text/css "access plus 60 days"
|
||||
ExpiresByType application/javascript "access plus 60 days"
|
||||
ExpiresByType image/png "access plus 12 hours"
|
||||
ExpiresByType image/gif "access plus 12 hours"
|
||||
</IfModule>
|
||||
</VirtualHost>
|
||||
|
||||
## Intranet
|
||||
|
|
@ -250,6 +258,14 @@
|
|||
RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L]
|
||||
</Directory>
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive on
|
||||
ExpiresByType text/css "access plus 60 days"
|
||||
ExpiresByType application/javascript "access plus 60 days"
|
||||
ExpiresByType image/png "access plus 12 hours"
|
||||
ExpiresByType image/gif "access plus 12 hours"
|
||||
</IfModule>
|
||||
</VirtualHost>
|
||||
|
||||
# Uncomment this VirtualHost to enable API access through
|
||||
|
|
|
|||
Loading…
Reference in New Issue