2425 Commits

Author SHA1 Message Date
Fenny
5629c6507d
Merge pull request #906 from kiyonlin/fix-903
🩹 Avoid panic when updating statistics
2020-10-10 16:26:35 +02:00
Fenny
c0efbcd28c
Merge pull request #908 from hi019/master
🐛 Make SendFile return 404 if file not found
2020-10-10 16:26:21 +02:00
hi019
2c8df2e337 🎨 Use NewError in SendFile 2020-10-09 23:11:44 -04:00
kiyon
d446a32b30 🩹 Avoid panic when updating statistics
fix #903
2020-10-10 10:39:12 +08:00
hi019
b73e883241 🐛 Make SendFile return 404 if file not found 2020-10-09 21:42:25 -04:00
Fenny
45399ef9fe
Merge pull request #902 from codemicro/child-pids-on-start
📦 Add child PID display when prefork enabled
2020-10-09 18:44:29 +02:00
Tom
35e100db6e
📦 Add child PID display when prefork enabled 2020-10-09 09:40:49 +01:00
Tom
53ab7a63bc
Merge pull request #1 from gofiber/master
Get new changes
2020-10-09 08:31:10 +01:00
Fenny
69cbe1b6ea
Merge pull request #901 from alfuhigi/master
renaming to README_sa
2020-10-09 06:41:32 +02:00
Abdulaziz Jaiz
d04d8d15ec renaming to README_sa https://github.com/gofiber/website/pull/10#pullrequestreview-504575447 2020-10-09 03:28:37 +03:00
Fenny
d4750fbf2b
Merge pull request #897 from klipitkas/custom-type-compress-middleware
Add custom types to compress middleware
2020-10-08 18:13:49 +02:00
Fenny
68e8684add
Merge pull request #898 from Fenny/master
📦 add cache benchmark + 1 min default
2020-10-08 18:13:18 +02:00
Fenny
33e91e8111 📦 add benchmark 2020-10-08 18:11:26 +02:00
Konstantinos Lypitkas
550d3a3549 Fix grammatical issues 2020-10-08 10:56:25 +03:00
Konstantinos Lypitkas
60cebf2506 Add custom types to compress middleware 2020-10-08 00:05:34 +03:00
Fenny
5d8e533946
Merge pull request #896 from r-52/r-max-age-on-static-files
🔥 set `Cache Control` header for static resources
2020-10-07 15:45:56 +02:00
Roman
3e6dfb313b 🔥set a Cache Control header for static ressources
Right now, each static request returns the file without any cache control
header. If you are using `app.Static` to serve your assets, the
browser shouldn't cache it. This PR introduces a way to set the cache
control header (if the file was found) on the file response to set a
custom max-age to e.g. cache it 1 year.
2020-10-07 15:44:38 +02:00
Fenny
47f866fc80
Merge pull request #893 from r-52/r-compress-dont-use-magic-numbers
♻️ compression: avoid magic numbers in compression level check
2020-10-07 15:34:11 +02:00
Fenny
7b16c8439c
Merge pull request #895 from Fenny/master
🧪 add benchmark to basicauth
2020-10-07 15:27:58 +02:00
Fenny
e30d9dad39 🧪 add benchmark to basicauth 2020-10-07 13:51:18 +02:00
Fenny
dcf7b35c1c
Merge pull request #892 from r-52/r-memory-opt-for-fasthttp
🔥 make the fasthttp `ReduceMemoryUsage` flag public
2020-10-07 12:40:28 +02:00
Roman
6084e7c1f1 🔥 make the fasthttp ReduceMemoryUsage flag public
This PR introduces the `ReduceMemoryUsage` flag to the server config
that is pulled to the underlying fasthttp server. The default is false
to keep the old behavior.

The implementation of `ReduceMemoryUsage` is here: 01acd76daf/server.go (L285)

Refs: #866 / https://github.com/gofiber/fiber/issues/866#issuecomment-704818583
2020-10-07 12:33:47 +02:00
Fenny
61c891c565
Merge pull request #891 from r-52/r-use-constants-for-tests
♻️ refactor app test to use the constants to access the http methods and headers
2020-10-07 11:33:28 +02:00
Roman
acb6bbea2b ♻️ refactor app test to use the constants to access the http methods and headers 2020-10-07 11:07:12 +02:00
Roman
6e72025b6c ♻️ compression: avoid magic numbers in compression level check
Avoid the magic numbers to make it easier to read
2020-10-07 09:56:27 +02:00
Fenny
e090f5278a
Merge pull request #888 from Fenny/master
🧨 add public to max age header
2020-10-06 20:18:43 +02:00
Fenny
b37789836d 🧪 update cache test 2020-10-06 20:15:21 +02:00
Fenny
ad06443a7a 🧨 add public to max age header 2020-10-06 20:10:03 +02:00
Fenny
8e8ca4e04b
Merge pull request #886 from r-52/r-fix-anchor
🩹 fix the anchor tag and external references to fix the GH-generated link
2020-10-06 19:59:18 +02:00
Roman
180fedc0c4 🩹 fix the anchor tag and external references to fix the GH-generated link 2020-10-06 10:21:16 +02:00
Fenny
b6e8e7cca8
Merge pull request #885 from Fenny/master
📦 prepare v2.0.6
v2.0.6
2020-10-05 21:54:02 +02:00
Fenny
c6a08d9550 ✏ restore feature list 2020-10-05 21:51:35 +02:00
Fenny
251a2e46e2 ⚠ add warning message 2020-10-05 20:06:36 +02:00
Fenny
2d301ed7ce 📦 update version to v2.0.6 2020-10-05 20:05:16 +02:00
Fenny
898d210ea2 Merge remote-tracking branch 'upstream/master' 2020-10-05 20:04:40 +02:00
Fenny
748001b8d6
Merge pull request #883 from r-52/r-favicon-cache-control
🔥add the option to set a custom Cache-Control value for a favicon response
2020-10-05 20:02:59 +02:00
Roman
5a3edb9011 🔥add the option to set a custom Cache-Control value for a favicon response
Right now, each favicon response sets the `Cache-Control` header to
`public, max-age=31536000` (1 year). In some cases this could be a
little bit high if you are changing it etc. and the header is not
replaced by a reverse proxy.

With this change, the favicon middleware allows the configuration of the
`Cache-Control` header. The default behavior is to keep the setting of
`max-age=31536000 `, but you could fine-tune it.
2020-10-05 08:35:29 +02:00
Fenny
5ccc7d4321
Merge pull request #880 from klipitkas/add-coverage-cache
Increase coverage in cache middleware
2020-10-04 19:10:42 +02:00
Konstantinos Lypitkas
9df61e925c Increase coverage in cache middleware 2020-10-04 10:41:54 +03:00
Fenny
9d57e235ed Update README.md 2020-10-04 05:43:27 +02:00
Fenny
16732c183e update features 2020-10-04 05:41:01 +02:00
Fenny
52ed4d1b88
Merge pull request #879 from DavidMazary/fix-lint-warnings
🎨 Fix gosimple and deadcode lint warnings
2020-10-04 00:26:29 +02:00
Fenny
b32e75e130
Merge pull request #878 from r-52/r-readme-third-party
🩹fix the duplicated third party license links in the readme
2020-10-04 00:01:14 +02:00
Roman
dcea4d5ddb 🩹fix the duplicated third party license links in the readme
right now the readme links to different third party licenses. The
last part has some of the doubled. This PR removes them
2020-10-03 23:33:57 +02:00
David Mazary
71d3e16be4 🚨 Remove unused isIPv6 func 2020-10-03 13:31:33 -04:00
David Mazary
618b753230 🚨 Fix gosimple lint warnings 2020-10-03 13:20:54 -04:00
Fenny
b4bec8df6c
Merge pull request #877 from kiyonlin/fix-app-group
👷 fix group.Mount
2020-10-03 18:47:56 +02:00
Fenny
dffe3660c8
Merge pull request #876 from kiyonlin/improve-ctx-test
👷 add ctx test case to improve coverage
2020-10-03 18:47:03 +02:00
Fenny
733e3e803b
Merge pull request #875 from kiyonlin/improve-app-test
👷 add app test case to improve coverage
2020-10-03 18:46:56 +02:00
Fenny
ce7006a438
Merge pull request #874 from kiyonlin/ignore-error
👷 handle error of fmt.Fprintf
2020-10-03 18:46:47 +02:00