aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorctucx <c@ctu.cx>2020-05-24 20:53:59 +0200
committerctucx <c@ctu.cx>2020-05-24 20:53:59 +0200
commit3a13fa6b7b58ed80fb95312e361358d4c924b402 (patch)
treeea7240bef085d0997edb4a0ce065964b4061b79b
parent6d3ffe4fd1b24cf6a8f11e8c118173145a972429 (diff)
downloadgallery-3a13fa6b7b58ed80fb95312e361358d4c924b402.tar.gz
gallery-3a13fa6b7b58ed80fb95312e361358d4c924b402.tar.bz2
gallery-3a13fa6b7b58ed80fb95312e361358d4c924b402.zip
update readme
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index df05575..5786ad3 100644
--- a/README.md
+++ b/README.md
@@ -18,3 +18,14 @@ Dependencies: ImageMagick, nim >= 1.0.6, nimble
## infos
When running the program, a config file must be specified, then the program creates all necessary HTML and CSS objects to display the pages correctly and creates images in the following sizes: medium: 1920x1080, thumbnail: 200x200
+
+it's recommended to disable caching for the html files, here is an example config snippet for nginx:
+```
+location ~* \.html$ {
+ add_header Last-Modified $date_gmt;
+ add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
+ if_modified_since off;
+ expires off;
+ etag off;
+}
+```