diff options
author | Peter Palfrader <peter@palfrader.org> | 2005-04-11 21:14:28 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2005-04-11 21:14:28 +0000 |
commit | 195fe0ed026e99e406c60e3e8392268648c449c5 (patch) | |
tree | 4d934fd4708bd635d007a99429a3bf25421d3c5b /web/load | |
parent | 91e1563d97b6333cceb0f7b8d950eaf2ab117169 (diff) |
Do .htaccess expiry stuff
Diffstat (limited to 'web/load')
-rw-r--r-- | web/load/Makefile.am | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/web/load/Makefile.am b/web/load/Makefile.am index 5b11ded..232b9bd 100644 --- a/web/load/Makefile.am +++ b/web/load/Makefile.am @@ -6,7 +6,6 @@ include $(top_srcdir)/Makefile.common doc_DATA = result/index.html result/index.html: $(ECHOLOT_BASE)/results/thesaurus/index.txt $(ECHOLOT_BASE)/data $(ECHOLOT_BASE)/data/* - $(top_srcdir)/bin/load-update $(ECHOLOT_BASE) $(LOAD_RRD_DIR); \ [ -d result ] || mkdir result if [ -e $@ ] ; then \ mod=`stat -c '%Y' $@`; \ @@ -20,14 +19,20 @@ result/index.html: $(ECHOLOT_BASE)/results/thesaurus/index.txt $(ECHOLOT_BASE)/d echo "** Skipping Load build"; \ fi + echo "ExpiresActive On" > result/.htaccess + echo "ExpiresByType image/png \"modification plus $(LOAD_AGE) seconds\"" >> result/.htaccess + echo "ExpiresByType text/html \"modification plus $(LOAD_AGE) seconds\"" >> result/.htaccess + clean: rm -rf result install-data-local: result/index.html [ -d $(docdir) ] || mkdir $(docdir) - cp result/*.png $(docdir) - cp result/*.html $(docdir) + cp -a result/*.png $(docdir) + cp -a result/*.html $(docdir) + cp -a result/.htaccess $(docdir) uninstall-local: rm -f $(docdir)/*.png rm -f $(docdir)/*.html + rm -f $(docdir)/.htaccess |