1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-04-17 11:03:23 +02:00

Minor fixes. Added cache support for pngs, if server supports it.

This commit is contained in:
Lars Jung 2011-06-19 19:47:28 +02:00
parent ff2bddf826
commit 7602ab55d7
3 changed files with 28 additions and 5 deletions

@ -28,8 +28,9 @@ Install
* Add the content of file `dot.htaccess` to the `.htaccess` file in the directory
you want to be styled (you might have to create this file). This directory and any subdirectories will be
styled by h5ai.
* Optionally add `h5ai.header.html` and/or `h5ai.footer.html` files to any of the styled folders to [display custom
top or bottom sections](http://repo.larsjung.de/h5ai-sample/customize). The content of those files will be wrapped by `<header>` and `<footer>` tags.
* Optionally add `h5ai.header.html` and/or `h5ai.footer.html` files to any of the styled folders to [display
custom top or bottom sections](http://repo.larsjung.de/h5ai-sample/customize). The content of those files
will be wrapped by `<header>` and `<footer>` tags.
Changelog

@ -1,9 +1,29 @@
################################
# customized .htaccess for h5ai
################################
# Options +Indexes
# Options +FollowSymLinks
################################
# cache images for 52 weeks
################################
<IfModule mod_headers.c>
<FilesMatch "\.png$">
Header set Cache-Control "max-age=31449600, public"
</FilesMatch>
</IfModule>
################################
# style auto index
################################
<IfModule mod_autoindex.c>
# Options +Indexes
################################
# uncomment the following line to force directory listing
# even for directories with valid index files

@ -52,6 +52,8 @@ body > nav a {
padding: 0 10px;
}
body > nav img {
width: 16px;
height: 16px;
vertical-align: bottom;
padding: 0 6px 6px 0;
}