{ "info": { "author": "Adam Thurlow", "author_email": "thurloat@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development" ], "description": "django-postleware\n#################\n\nA simple django middleware class which injects a `Cache-Control: no-cache`\nheader onto POST responses.\n\nInstalling\n##########\n\n1. `pip install django-postleware`\n2. Add the middleware to `settings.py`\n\n\n.. code-block:: python\n \n MIDDLEWARE_CLASSES = (\n 'postleware.PostResponseCachebusterMiddleware',\n # ...\n )\n\n\nWhy?\n####\n\nMobile Webkit (iOS4+ and Android stock bowser) has a bug that causes it to\ncache similar POST requests when it clearly shouldn't. Rather than only caching\nrequests that have a specific `Cache-Control` header, it does the opposite and\ncaches the request unless the `no-cache` value is present in the POST response.\n\nNot working for you?\n####################\n\nLet me know by opening an issue or pull request. This was enough for me, but I\nhave read around the webs that other devs needed to add additional headers to\nthe response before it would stop caching.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/thurloat/django-postleware", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-postleware", "package_url": "https://pypi.org/project/django-postleware/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-postleware/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/thurloat/django-postleware" }, "release_url": "https://pypi.org/project/django-postleware/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "A simple django middleware that ensures POSTs aren't cached by clients.", "version": "1.0.1" }, "last_serial": 746284, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "d81c931db92d07895edfefd79b53aa17", "sha256": "533ed73d636b5ec8346916d2501b95401b96fb24ab9b8dd2435e6b38aa98cd2a" }, "downloads": -1, "filename": "django-postleware-1.0.tar.gz", "has_sig": false, "md5_digest": "d81c931db92d07895edfefd79b53aa17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1014, "upload_time": "2013-01-17T02:11:47", "url": "https://files.pythonhosted.org/packages/66/58/a358c9e33e34b3599e22633a2523af33c493f0e8ffa500e2da146acadacd/django-postleware-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b8f1b61c8c93caf4bad6386268c0f848", "sha256": "146ed96753930132e1087f5d94b50e82c3d6a85387cd609bd015655711cb1a8b" }, "downloads": -1, "filename": "django-postleware-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b8f1b61c8c93caf4bad6386268c0f848", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6105, "upload_time": "2013-01-27T18:23:05", "url": "https://files.pythonhosted.org/packages/f4/2a/7d698ef126e5d8cea973c45c4e2eb95752a990befa940d11bcbfb2774324/django-postleware-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8f1b61c8c93caf4bad6386268c0f848", "sha256": "146ed96753930132e1087f5d94b50e82c3d6a85387cd609bd015655711cb1a8b" }, "downloads": -1, "filename": "django-postleware-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b8f1b61c8c93caf4bad6386268c0f848", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6105, "upload_time": "2013-01-27T18:23:05", "url": "https://files.pythonhosted.org/packages/f4/2a/7d698ef126e5d8cea973c45c4e2eb95752a990befa940d11bcbfb2774324/django-postleware-1.0.1.tar.gz" } ] }