Django 4.2.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 4.0.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 3.2.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your Web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 3.2.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your Web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 2.2.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your Web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 3.1.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your Web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 3094 页 | 3.03 MB | 1 年前3
Django 3.1.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your Web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 2053 页 | 6.92 MB | 1 年前3
Django 2.1.x Documentationviews.decorators.vary can be used to control caching based on specific request headers. vary_on_cookie(func) vary_on_headers(*headers) The Vary header defines which request headers a cache mechanism receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend). Enabling sessions Sessions are implemented via a piece of middleware. To enable Be sure to check that your Web server has permissions to read and write to this location. Using cookie-based sessions To use cookies-based sessions, set the SESSION_ENGINE setting to "django.contrib0 码力 | 2790 页 | 2.71 MB | 1 年前3
共 53 条
- 1
- 2
- 3
- 4
- 5
- 6













