diff options
Diffstat (limited to '')
-rw-r--r-- | manifests/instance.pp | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/manifests/instance.pp b/manifests/instance.pp index 07db874..8f9f1d1 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -71,13 +71,27 @@ define blog::instance ( } nginx::resource::location { "${safe_title} - /": - location => '/', - try_files => ['$uri', '$uri/', '=404'], - index_files => [], - ssl => true, - ssl_only => true, - autoindex => on, - server => $blog::blog_server_name, + location => '/', + try_files => ['$uri', '$uri/', '=404'], + index_files => [], + ssl => true, + ssl_only => true, + autoindex => on, + server => $blog::blog_server_name, + add_header => { + 'Cache-Control' => "no-cache", + }, + } + + nginx::resource::location { "${safe_title} - css": + location => '~ \.css$', + try_files => [ '$uri', '=404' ], + ssl => true, + ssl_only => true, + expires => '1h', + add_header => { + 'Cache-Control' => "no-cache", + }, } nginx::resource::location { "${safe_title} - php": |