Skip to content

Commit

Permalink
Fix Error on Static Unauthorized Page
Browse files Browse the repository at this point in the history
  • Loading branch information
deweerdd committed Sep 11, 2024
1 parent ee1476a commit 5771ba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Push
on:
push:
branches:
- "preview23"
- "fix_static_unauth_page"

env:
ECR_REPOSITORY: images
Expand Down
2 changes: 1 addition & 1 deletion redash/authentication/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def custom_unauthorized_handler():
url = request.referrer
if url and url_parse(url).host == "admin.masterworks.com":
full_path = safe_join(settings.STATIC_ASSETS_PATH, "unauthorized.html")
response = send_file(full_path, **dict(cache_timeout=0, conditional=True))
response = send_file(full_path, max_age=0, conditional=True)
return response
else:
redirect_url = make_login_url("redash.login", next_url=request.url)
Expand Down

0 comments on commit 5771ba6

Please sign in to comment.