Changes between Initial Version and Version 1 of Ticket #36560


Ignore:
Timestamp:
Aug 19, 2025, 4:16:33 AM (4 weeks ago)
Author:
mengxun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36560 – Description

    initial v1  
     1**settings.py**
     2{{{
     3...
     4MIDDLEWARE = [
     5    "django.middleware.cache.UpdateCacheMiddleware",
     6    "django.middleware.common.CommonMiddleware",
     7    "django.middleware.cache.FetchFromCacheMiddleware",
     8]
     9...
     10}}}
     11
     12**views.py**
    113{{{
    214from django.http import HttpResponse
     
    921
    1022}}}
     23
    1124Based on the example above, when the Cache-Control header is set to no-store, the response content is still cached.
Back to Top