Skip to content

Conversation

trevoriancox
Copy link

  • CACHES default overwrites settings.py.
  • HttpResponseNotModified does not accept mimetime parameter.

- CACHES default overwrites settings.py.
- HttpResponseNotModified does not accept mimetime parameter.
if not was_modified_since(request.META.get('HTTP_IF_MODIFIED_SINCE'),
statobj[stat.ST_MTIME], statobj[stat.ST_SIZE]):
return HttpResponseNotModified(mimetype=image.mimetype)
return HttpResponseNotModified() #mimetype=image.mimetype)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove the comment #mimetype=image.mimetype) here?
If we get rid of it let's just clear it out

egon0 added a commit to egon0/django-imagefit that referenced this pull request Nov 5, 2016
@vinyll vinyll force-pushed the master branch 2 times, most recently from 0a17394 to 7b8b1b1 Compare September 7, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants