Skip to content
Merged
Prev Previous commit
Next Next commit
add todo
  • Loading branch information
Archmonger committed Oct 25, 2024
commit 46e5ff7fc5c479d3e74a205cd55ab3a6786436eb
2 changes: 2 additions & 0 deletions src/reactpy_django/http/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ async def web_modules_file(request: HttpRequest, file: str) -> HttpResponse:
await caches[REACTPY_CACHE].aset(
cache_key, file_contents, timeout=604800, version=int(last_modified_time)
)

# TODO: Convert this to a StreamingHttpResponse
return HttpResponse(file_contents, content_type="text/javascript")


Expand Down