Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
f9b7a038
Kaydet (Commit)
f9b7a038
authored
Tem 25, 2014
tarafından
Moayad Mardini
Kaydeden (comit)
Tim Graham
Tem 25, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #22827 -- clarified what each cache middleware does.
Thanks Keryn Knight for the report.
üst
aa8bc7fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cache.txt
docs/topics/cache.txt
+8
-8
No files found.
docs/topics/cache.txt
Dosyayı görüntüle @
f9b7a038
...
@@ -465,14 +465,14 @@ Then, add the following required settings to your Django settings file:
...
@@ -465,14 +465,14 @@ Then, add the following required settings to your Django settings file:
the site, or some other string that is unique to this Django instance, to
the site, or some other string that is unique to this Django instance, to
prevent key collisions. Use an empty string if you don't care.
prevent key collisions. Use an empty string if you don't care.
The cache middleware caches GET and HEAD responses with status 200, where the request
``FetchFromCacheMiddleware`` caches GET and HEAD responses with status 200,
and response headers allow. Responses to requests for the same URL with different
where the request and response headers allow. Responses to requests for the same
query parameters are considered to be unique pages and are cached separately.
URL with different query parameters are considered to be unique pages and are
The cache middleware expects that a HEAD request is answered with the same
cached separately. This middleware expects that a HEAD request is answered with
response headers as the corresponding GET request; in which case it can retur
n
the same response headers as the corresponding GET request; in which case it ca
n
a cached GET response for HEAD request.
return
a cached GET response for HEAD request.
Additionally,
the cache middleware
automatically sets a few headers in each
Additionally,
``UpdateCacheMiddleware``
automatically sets a few headers in each
:class:`~django.http.HttpResponse`:
:class:`~django.http.HttpResponse`:
* Sets the ``Last-Modified`` header to the current date/time when a fresh
* Sets the ``Last-Modified`` header to the current date/time when a fresh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment