Opened 8 years ago

Closed 8 years ago

#2671 closed enhancement (wontfix)

Gzip compression of Sitemap?

Reported by: JayKlehr Owned by: adrian
Component: Contrib apps Version: master
Severity: trivial Keywords: sitemap gzip
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Now that the Sitemaps framework is part of Django (great job by the way) I was hoping that a bit could be added to enable gzip compression of the sitemap xml files after they are created. Both Yahoo! and Google recognize gzipped sitemaps, and Google's sitemap generator tool gzips them by default.

Think this is possible for Django?

Change History (2)

comment:1 Changed 8 years ago by mattmcc

Have you looked at GzipMiddleware?

comment:2 Changed 8 years ago by adrian

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

Use the GzipMiddleware, or use a decorator on the sitemap view using the new functionality that allows URLconfs to accept callables rather than strings.

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