Opened 6 years ago

Closed 6 years ago

#12657 closed (duplicate)

Caching middleware raises an error for binary files

Reported by: Archatas Owned by: nobody
Component: Core (Cache system) Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When django webserver is used for development, media files are served as static and django.middleware.cache.UpdateCacheMiddleware is used, requests to media files throw an error:

UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: unexpected code byte

Change History (2)

comment:1 Changed 6 years ago by Archatas

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Caching middleware raises an error for static files to Caching middleware raises an error for binary files

comment:2 Changed 6 years ago by kmtracey

  • Resolution set to duplicate
  • Status changed from new to closed

Please include full trcebacks in ticket descriptions. In the absence of one, I suspect this is #9370.

Note: See TracTickets for help on using tickets.
Back to Top