from documents.bulk_download import ArchiveOnlyStrategy
from documents.bulk_download import OriginalAndArchiveStrategy
from documents.bulk_download import OriginalsOnlyStrategy
-from documents.caching import CACHE_50_MINUTES
from documents.caching import get_metadata_cache
from documents.caching import get_suggestion_cache
from documents.caching import refresh_metadata_cache
return None
@action(methods=["get"], detail=True)
+ @method_decorator(cache_control(no_cache=True))
@method_decorator(
condition(etag_func=metadata_etag, last_modified_func=metadata_last_modified),
)
return Response(meta)
@action(methods=["get"], detail=True)
+ @method_decorator(cache_control(no_cache=True))
@method_decorator(
condition(
etag_func=suggestions_etag,
return Response(resp_data)
@action(methods=["get"], detail=True)
- @method_decorator(cache_control(public=False, max_age=5 * 60))
+ @method_decorator(cache_control(no_cache=True))
@method_decorator(
condition(etag_func=preview_etag, last_modified_func=preview_last_modified),
)
raise Http404
@action(methods=["get"], detail=True)
- @method_decorator(cache_control(public=False, max_age=CACHE_50_MINUTES))
+ @method_decorator(cache_control(no_cache=True))
@method_decorator(last_modified(thumbnail_last_modified))
def thumb(self, request, pk=None):
try: