Skip to content

Commit bf9ddf2

Browse files
committed
Merge branch 'release/1.0.17'
2 parents c3e8e0c + f0c3301 commit bf9ddf2

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Nginx-Craft Changelog
22

3+
## 1.0.17 - 2018.08.21
4+
### Added
5+
* Don't allow browser caching of dynamically generated content
6+
7+
### Changed
8+
* Added "Remove if you don't plan to use server-set ENV variables" comment
9+
310
## 1.0.16 - 2018.05.14
411
### Changed
512
* Removed duplicate `client_max_body_size` directives

forge-example/NginxConfiguration.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,15 @@ server {
125125
fastcgi_param HTTP_PROXY "";
126126
fastcgi_param HTTP_HOST SOMEDOMAIN.com;
127127

128+
# Don't allow browser caching of dynamically generated content
129+
add_header Last-Modified $date_gmt;
130+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
131+
if_modified_since off;
132+
expires off;
133+
etag off;
134+
128135
# See https://github.com/nystudio107/craft-multi-environment or https://github.com/nystudio107/craft3-multi-environment
136+
# Remove if you don't plan to use server-set ENV variables
129137
fastcgi_param CRAFTENV_CRAFT_ENVIRONMENT "REPLACE_ME";
130138
fastcgi_param CRAFTENV_DB_HOST "REPLACE_ME";
131139
fastcgi_param CRAFTENV_DB_NAME "REPLACE_ME";

sites-available/basic_localdev.com.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ server {
5353
fastcgi_param HTTP_PROXY "";
5454
fastcgi_param HTTP_HOST SOMEDOMAIN.com;
5555

56+
# Don't allow browser caching of dynamically generated content
57+
add_header Last-Modified $date_gmt;
58+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
59+
if_modified_since off;
60+
expires off;
61+
etag off;
62+
5663
fastcgi_intercept_errors off;
5764
fastcgi_buffer_size 16k;
5865
fastcgi_buffers 4 16k;

sites-available/somedomain.com.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,15 @@ server {
131131
fastcgi_param HTTP_PROXY "";
132132
fastcgi_param HTTP_HOST SOMEDOMAIN.com;
133133

134+
# Don't allow browser caching of dynamically generated content
135+
add_header Last-Modified $date_gmt;
136+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
137+
if_modified_since off;
138+
expires off;
139+
etag off;
140+
134141
# See https://github.com/nystudio107/craft-multi-environment or https://github.com/nystudio107/craft3-multi-environment
142+
# Remove if you don't plan to use server-set ENV variables
135143
fastcgi_param CRAFTENV_CRAFT_ENVIRONMENT "REPLACE_ME";
136144
fastcgi_param CRAFTENV_DB_HOST "REPLACE_ME";
137145
fastcgi_param CRAFTENV_DB_NAME "REPLACE_ME";

0 commit comments

Comments
 (0)