Это из документации django :
condition(etag_func=None, last_modified_func=None)
etag(etag_func)
last_modified(last_modified_func)
These decorators can be used to generate ETag and Last-Modified headers
и все же, это также из документации django :
Additionally, the cache middleware automatically sets a few headers in each HttpResponse:
Sets the Last-Modified header to the current date/time when a fresh (uncached) version of the page is requested.
Sets the Expires header to the current date/time plus the defined CACHE_MIDDLEWARE_SECONDS.
Sets the Cache-Control header to give a max age for the page -- again, from the CACHE_MIDDLEWARE_SECONDS setting.
Поэтому мне было интересно, какое значение принимает Last-Modified, когда я использую как кэширование, так и декоратор условий.
Изменить: А также, вы бы порекомендовали использовать их обоих, или просто использовать один из них?