Hi, On Mon, Aug 12, 2013 at 11:33 AM, anjan <[email protected]> wrote: > Sling is using DefaultGetServlet which uses StreamRendererServlet to stream > the resources... > ...We can force the browser to always prompt for the file download, > if we add "Content-Disposition" header. > > Is it possible to add this header to the above servlet?...
AFAIK neither the DefaultGetServlet nor the StreamRendererServlet provide extension points for custom headers. You could implement a Filter [1] to do this, maybe add your Content-Disposition header when you notice that you're about to send a response with the specific Content-Type that you're interested in. -Bertrand [1] http://sling.apache.org/documentation/the-sling-engine/filters.html
