Cache Response Headers in Dispatcher?
hi,
i noticed in following link: http://dev.day.com/docs/en/cq/current/deploying/dispatcher.html
"due this, dispatcher stores html code of page - not store http headers. can issue if use different encodings within website, these may lost."
i created json renderer, sets content type in header json:
response.addheader("content-type", "application/json");
this works first time (before caching)
however, once cached dispatcher, server sets content type "application/x-javascript"
i guessing there no way override this. ideas?
thanks
make sure web server has registered .json extension in mime type
More discussions in Archived Spaces
adobe
Comments
Post a Comment