Add an option to serve ES6 JS to clients (#10474)
* Add an option to serve ES6 JS to clients * Rename es6 to latest * Fixes * Serve JS vrsions from separate dirs * Revert websocket API change * Update frontend to 20171110.0 * websocket: move request to constructor
This commit is contained in:
parent
1c36e2f586
commit
5e92fa3404
10 changed files with 150 additions and 65 deletions
|
@ -65,7 +65,8 @@ class CachingFileResponse(FileResponse):
|
|||
@asyncio.coroutine
|
||||
def staticresource_middleware(request, handler):
|
||||
"""Middleware to strip out fingerprint from fingerprinted assets."""
|
||||
if not request.path.startswith('/static/'):
|
||||
path = request.path
|
||||
if not path.startswith('/static/') and not path.startswith('/frontend'):
|
||||
return handler(request)
|
||||
|
||||
fingerprinted = _FINGERPRINT.match(request.match_info['filename'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue