diff --git a/djangoldp/views.py b/djangoldp/views.py index 867a658ae5b81541762f1717251e8ea8edf2e10c..f88516dfc0bc1252f79c8588d783724d5ff9ba1b 100644 --- a/djangoldp/views.py +++ b/djangoldp/views.py @@ -630,6 +630,11 @@ def serve_static_content(request, path): content = file.read() json_content = json.loads(content) - return JsonResponse(json_content, safe=False, status=200, content_type='application/ld+json', headers={'Access-Control-Allow-Origin': '*'}) + return JsonResponse(json_content, safe=False, status=200, + content_type='application/ld+json', + headers={ + 'Access-Control-Allow-Origin': '*', + 'Cache-Control': 'public, max-age=3600', + }) else: return HttpResponseNotFound('File not found')