skip to navigation
skip to content

Not Logged In

django-never-cache-post 0.1

Ensure that (iOS 6) never caches the result of an ajax POST again.

Latest Version: 0.1.1

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.
 
File Type Py Version Uploaded on Size
django-never-cache-post-0.1.tar.gz (md5) Source 2012-11-02 1KB
  • Downloads (All Versions):
  • 3 downloads in the last day
  • 31 downloads in the last week
  • 224 downloads in the last month