Ticket #14047: middleware-doc.diff

File middleware-doc.diff, 1.3 KB (added by Leon Matthews <python@…>, 14 years ago)
  • django/middleware/common.py

     
    8080        return http.HttpResponsePermanentRedirect(newurl)
    8181
    8282    def process_response(self, request, response):
    83         "Check for a flat page (for 404s) and calculate the Etag, if needed."
     83        "Send broken link emails and calculates the Etag, if needed."
    8484        if response.status_code == 404:
    8585            if settings.SEND_BROKEN_LINK_EMAILS:
    8686                # If the referrer was from an internal link or a non-search-engine site,
  • docs/ref/middleware.txt

     
    6868      indexer would treat them as separate URLs -- so it's best practice to
    6969      normalize URLs.
    7070
     71    * Sends broken link notification email to managers if
     72      :setting:`SEND_BROKEN_LINK_EMAILS` is set to ``True``.
     73
    7174    * Handles ETags based on the :setting:`USE_ETAGS` setting. If
    7275      :setting:`USE_ETAGS` is set to ``True``, Django will calculate an ETag
    7376      for each request by MD5-hashing the page content, and it'll take care of
Back to Top