A simple middleware to work around a bug in iOS 6 that caches the results of $.ajax POST requests inappropriately. (See [“Is Safari on iOS 6 caching $.ajax results?”](http://stackoverflow.com/q/12506897/400691) on Stack Overflow.)
This solution is inspired by [Meilo’s answer to “Fighting client-side caching in Django”](http://stackoverflow.com/a/5882033/400691), also on Stack Overflow.
Installation
Install from pypi.
pip install django-never-cache-post
In your settings:
Add ‘never_cache_post’ to INSTALLED_APPS.
Add ‘never_cache_post.middleware.NeverCachePostMiddleware’ to MIDDLEWARE_CLASSES.
Release files for django-never-cache-post 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-never-cache-post-0.1.1.tar.gz | 1.6 kB | Details |
Release files / django-never-cache-post-0.1.1.tar.gz
| Download URL | django-never-cache-post-0.1.1.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9b2aa45f6232d997dede633d95620070da6f3c241972f376c142cf8716db40f
|
|
BLAKE2b-256 checksum How to use checksums |
882fd6d1121c4d4eb771fec3dc9b3f389fbee7dc4c37a76f0c6ccfc12aae9546
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |