X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7ef4abfc9ef8f8835f83cec90040a8d91a659d00..2d0cc46d3bc3357c19d13fc585c0a9492e5ee1b7:/apps/waiter/views.py?ds=inline diff --git a/apps/waiter/views.py b/apps/waiter/views.py index e38bd8f1d..0892ca91b 100644 --- a/apps/waiter/views.py +++ b/apps/waiter/views.py @@ -1,9 +1,16 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from os.path import join from waiter.models import WaitedFile from waiter.settings import WAITER_URL from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse +from django.views.decorators.cache import never_cache + +@never_cache def wait(request, path): if WaitedFile.exists(path): file_url = join(WAITER_URL, path)