Skip to content

Commit

Permalink
can do better later
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed May 2, 2024
1 parent a47dc97 commit 1b78b98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions labapp/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def return_err(err):

@app.after_request
def cache_control(response):
"""cache control"""
if request.path.startswith("/static/") and request.path.endswith(".png"):
response.headers['Cache-Control'] = 'public, max-age=3600'
return response
Expand Down
2 changes: 1 addition & 1 deletion labapp/app/markdown/lb.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Build an origin pool and load balancer based on the exercise requirements.
</li>
<li class="list-group-item">
<img src="/static/lb-icon.png" width="auto" height="50px"> &nbsp; &nbsp;
The load balancer domain is <strong>{{ ns }}.mcn-lab.f5demos.com</strong>.
The load balancer domain is <strong><i>your-ephemeral-namespace</i>.mcn-lab.f5demos.com</strong>.
</li>
<li class="list-group-item">
<img src="/static/lb-icon.png" width="auto" height="50px"> &nbsp; &nbsp;
Expand Down

0 comments on commit 1b78b98

Please sign in to comment.