-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hw5 #94
Open
stashevgenij
wants to merge
2
commits into
hardcode-dev:master
Choose a base branch
from
stashevgenij:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
hw5 #94
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# HW5 | ||
|
||
### Шаг 1. Настроить сертификат для локального HTTPS | ||
|
||
Создал сертификат для `localhost`. | ||
|
||
### Шаг 2. Настраиваем NGinx как reverse-proxy | ||
|
||
Установил `NGinx`, добавил ssl в конфиг. | ||
|
||
### Шаг 3. Настроить HTTP/2 и server-push | ||
|
||
Добавил `HTTP/2` + `push_preload` в конфиг. | ||
|
||
### Шаг 4. Поэксперементировать с HTTP/2 server-push | ||
|
||
Видно, что заинлайненные картинки появляются сразу вместе с первым контентом - шапкой, спустя небольшое заметное время на медленном соединении. Остальные картинки догружаются постепенно уже после. | ||
|
||
Настроил `server-push`, теперь в dev tools видно, что инициатор загрузки картинок - `Push/Other`. | ||
|
||
### Шаг 5. Измерение эффекта сделанных изменений | ||
|
||
**Без `server-push`:** | ||
|
||
 | ||
|
||
**С `server-push`:** | ||
|
||
 | ||
|
||
Первая отрисовка при `server-push` появляется почти на секунду (~27%) быстрее, что в принципе крутой результат, учитывая небольшие затраты времени на оптимизацию. | ||
|
||
Единственное - сначала напряг показатель Total Blocking Time: 1.988s с сервер пуш и 549ms без сервер пуш, но пересмотрев еще несколько итераций оказалось, что показатель сильно плавает и нельзя однозначно сказать, что он ухудшился при использовании `server-push`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. в данном случае конечно не страшно, но лучше вообще не комитить такое даже в тестовых проектах |
||
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDTO2qbZoJ2xi+T | ||
dIWN3vvRmETchI7zGP7OWqJPLJb0cuNdr62CKo493r5kPMQxTwr7CUpalSlMIKGz | ||
J71Nml1yV5mDJEl6O+YMrSREX/oEX1UskkolWAHe4q2fRTp4dljsUKuMywkKRr6P | ||
428PgffCRYNSjrOYZ3sNGswJl4YeOJP1JcrC6u0wUZVF82uzWosawNIs4/aLl+zS | ||
cQ05P0vnHeDxzBgPXgEecMsonR8ASYSCGQufWd388lJbbKXpsPRoikmKbXEfi3oQ | ||
DnHx3/YzHmmSuyLhRc+3milQK9gCFwgPJn40cSK6iKaLQYc1QFA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yP2T+Tk/E3V7yYrV | ||
8r99ry1D6WFtQeqaR+S0bOJKREIhK/+I4fsvGK3D7wKBgQDaZ8C1ZYAwDOA5by2T | ||
I3RpC92GJPkqu7codkyk57G10ZgvsPsnCRW4+9shvXbuJ/aicAZwEKHCrdTWXSo8 | ||
0rJGwOObZ5rgCwB12wOU+eKmQ98pk9EfJiZu+4Nr9/y8wGa1FDP88SYYJilTphn1 | ||
B8NKht3KawXLLq04kjqCRvrWDw== | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIEyTCCAzGgAwIBAgIRANp/a7ZjQA5xtBc4VEy4g3cwDQYJKoZIhvcNAQELBQAw | ||
gdcxHjAcBgNVBAoTFW1rY2VydCBkZXZlbG9wbWVudCBDQTFWMFQGA1UECwxNZS5z | ||
dGFzaGtvdnlhbkBNYWNCb29rLVByby1FdmdlbmlqLmxvY2FsICjQldCy0LPQtdC9 | ||
0LjQuSDQodGC0LDRiNC60L7QstGM0Y/QvSkxXTBbBgNVBAMMVG1rY2VydCBlLnN0 | ||
YXNoa292eWFuQE1hY0Jvb2stUHJvLUV2Z2VuaWoubG9jYWwgKNCV0LLQs9C10L3Q | ||
uNC5INCh0YLQsNGI0LrQvtCy0YzRj9C9KTAeFw0yMjA4MDgxMzU2MDRaFw0yNDEx | ||
MDgxMzU2MDRaMIGBMScwJQYDVQQKEx5ta2NlcnQgZGV2ZWxvcG1lbnQgY2VydGlm | ||
aWNhdGUxVjBUBgNVBAsMTWUuc3Rhc2hrb3Z5YW5ATWFjQm9vay1Qcm8tRXZnZW5p | ||
ai5sb2NhbCAo0JXQstCz0LXQvdC40Lkg0KHRgtCw0YjQutC+0LLRjNGP0L0pMIIB | ||
IjANBgkqhkiG9w0BAQEFAAO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Wdk8PMtSScEviTSFgBfbJQv/re7jUrqXWWmg= | ||
-----END CERTIFICATE----- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍