Skip to content

Commit 3990332

Browse files
author
Andrew Welch
committed
### Added
* Added `webp` to the `expires` header support ### Changed * Remove `etags` from static resources * Updated the CHANGELOG.md format
1 parent 326dd51 commit 3990332

File tree

3 files changed

+41
-21
lines changed

3 files changed

+41
-21
lines changed

CHANGELOG.md

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,52 @@
11
# Nginx-Craft Changelog
22

3+
## 1.0.5 - 2017.03.27
4+
### Added
5+
* Added `webp` to the `expires` header support
6+
7+
### Changed
8+
* Remove `etags` from static resources
9+
* Updated the CHANGELOG.md format
10+
311
## 1.0.4 - 2017.03.02
12+
### Added
13+
* Added (commented out) support for error logging going to `SYSLOG` for log services
14+
* Redirect bots probing the site for WordPress vulnerabilities
15+
* Added information on `opcache`
16+
* Added a redirect for Do Not Track as per https://www.eff.org/dnt-policy
17+
* Change // -> / for all URLs, so it works for our php location block, too
418

5-
* [Added] Added (commented out) support for error logging going to `SYSLOG` for log services
6-
* [Added] Redirect bots probing the site for WordPress vulnerabilities
7-
* [Added] Added information on `opcache`
8-
* [Improved] Removed `le-well-known.conf` so that it doesn't conflict with default Forge setups
9-
* [Added] Added a redirect for Do Not Track as per https://www.eff.org/dnt-policy
10-
* [Added] Change // -> / for all URLs, so it works for our php location block, too
11-
* [Improved] Updated README.md
19+
### Changed
20+
* Removed `le-well-known.conf` so that it doesn't conflict with default Forge setups
21+
* Updated README.md
1222

1323
## 1.0.3 - 2016.12.10
24+
### Added
25+
* Added support for localized sites (commented out by default)
26+
* Added `HTTP_PROXY`
27+
* Added `client_max_body_size` to the README.md
1428

15-
* [Added] Added support for localized sites (commented out by default)
16-
* [Added] Added `HTTP_PROXY`
17-
* [Added] Added `client_max_body_size` to the README.md
18-
* [Improved] Updated README.md
29+
### Changed
30+
* Updated README.md
1931

2032
## 1.0.2 - 2016.11.30
33+
### Added
34+
* Added an example Forge configuration in `forge-example`
35+
* 301 Redirect URLs with trailing /'s as per https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html
2136

22-
* [Added] Added an example Forge configuration in `forge-example`
23-
* [Added] 301 Redirect URLs with trailing /'s as per https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html
24-
* [Improved] Updated README.md
37+
### Changed
38+
* Updated README.md
2539

2640
## 1.0.1 - 2016.11.09
41+
### Added
42+
* Added `server_tokens off` to disable sending the Nginx version number
43+
* Added a commented out `Content-Security-Policy` header in `security.conf`
2744

28-
* [Added] Added `server_tokens off` to disable sending the Nginx version number
29-
* [Added] Added a commented out `Content-Security-Policy` header in `security.conf`
30-
* [Improved] Updated README.md
45+
### Changed
46+
* Updated README.md
3147

3248
## 1.0.0 - 2016.11.01
33-
34-
* [Added] Initial release
49+
### Added
50+
* Initial release
3551

3652
Brought to you by [nystudio107](https://nystudio107.com/)

nginx-partials/cache-busting.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# Read also this: github.com/h5bp/html5-boilerplate/wiki/cachebusting
77
# This is not included by default, because it'd be better if you use the build
88
# script to manage the file names.
9-
location ~* (.+)\.(?:\d+)\.(js|css|png|jpg|jpeg|gif)$ {
9+
location ~* (.+)\.(?:\d+)\.(js|css|png|jpg|jpeg|gif|webp)$ {
10+
etags off;
1011
expires 1M;
1112
access_log off;
1213
add_header Cache-Control "public";

nginx-partials/expires.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,24 @@ location ~* \.(?:rss|atom)$ {
2323
}
2424

2525
# Media: images, icons, video, audio, HTC
26-
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
26+
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc|webp)$ {
27+
etags off;
2728
expires 1M;
2829
access_log off;
2930
add_header Cache-Control "public";
3031
}
3132

3233
# CSS and Javascript
3334
location ~* \.(?:css|js)$ {
35+
etags off;
3436
expires 1y;
3537
access_log off;
3638
add_header Cache-Control "public";
3739
}
3840

3941
# WebFonts
4042
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
43+
etags off;
4144
add_header "Access-Control-Allow-Origin" "*";
4245
expires 1M;
4346
access_log off;

0 commit comments

Comments
 (0)