Skip to content

Commit

Permalink
actually apply Cache-Control to static resources (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
srabraham authored Feb 2, 2025
1 parent 68d4d65 commit 8ba2524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ims/application/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import ims.element
from ims.config import Configuration, URLs
from ims.ext.json_ext import jsonTextFromObject
from ims.ext.klein import ContentType, HeaderName
from ims.ext.klein import ContentType, HeaderName, static

from ._api import APIApplication
from ._auth import AuthApplication
Expand Down Expand Up @@ -126,6 +126,7 @@ def prefixEndpoint(self, request: IRequest) -> KleinRenderable:
return redirect(request, URLs.app)

@router.route(URLs.static, branch=True)
@static
def staticEndpoint(self, request: IRequest) -> KleinRenderable:
"""
Return endpoint for static resources collection.
Expand Down

0 comments on commit 8ba2524

Please sign in to comment.