-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhauled how static-resources are served
Rather than having a single handler for JS files, another handler for CSS files, etc, we now have one unified handler which is invoked for all static-resources. We achieve this by adding a 404-handler, which first of all checks whether the incoming-request can be satisfied via the contents of our static-resources. If so it will be served, with an appropriate MIME-type, if not then a real 404 result will be returned to the caller. The intention behind this change is that in the future we can embed arbitrary (additional) static-resources without the need to change our code.
- Loading branch information
Steve Kemp
committed
Aug 19, 2020
1 parent
dd818c0
commit 79ba823
Showing
5 changed files
with
86 additions
and
147 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Disallow: / |
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