Ensure that (iOS 6) never caches the result of an ajax POST again.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-never-cache-post-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7707543e4cd88f3895faf59f2c0362be39c5670f008d065b8363ec2f03d95099 |
|
MD5 | 172ee3612874ff436b483f13ee1b3b8f |
|
BLAKE2b-256 | 7cfbe909ef36a8fae696b3f14582b669403f9a0422c422febe7d34da3b090ec4 |