Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1177

ExtensionsFilter should not buffer data for certain content-types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.6
    • None
    • ExtensionsFilter
    • None

    Description

      Currently, ExtensionsFilter arranges for all data generated by a request to be buffered. Then after the request is complete it checks the content-type http header and skips any further processing if the type is not "text/html" or similar.

      Maybe the response-wrapper class could catch the start of response data writing, check its headers (which will be complete at that time) and then for non-html responses just stream the data directly rather than buffer it. This will save time and memory usage when a request to a .jsf url causes a non-html response to be returned. This isn't very often, but sometimes people do generate pdfs etc as a result of a jsf postback.

      Attachments

        Activity

          People

            Unassigned Unassigned
            skitching Simon Kitching
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: