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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-never-cache-post-0.1.1.tar.gz.
File metadata
- Download URL: django-never-cache-post-0.1.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b2aa45f6232d997dede633d95620070da6f3c241972f376c142cf8716db40f
|
|
| MD5 |
0255d407a9d567869f699ee426de6f53
|
|
| BLAKE2b-256 |
882fd6d1121c4d4eb771fec3dc9b3f389fbee7dc4c37a76f0c6ccfc12aae9546
|