This project is read-only.

ContentResult empty when not Authenticated

Topics: Customizing Orchard, General
Jul 19, 2013 at 7:52 AM
I'm at a loss as this why this has happened....

I have a Action that I use to dynamically create CSS, the Action returns:
return new ContentResult {Content = css, ContentType = "text/css"};
For some reason if the user is not Authenticated (logged in) the content returned to the browser is empty, if the user is logged in then its returned fine.

I've debugged and the Action always gets executed, the ContentType comes through fine although somehow the Content is lost...

Any ideas?
Jul 19, 2013 at 8:09 AM
Seems to be a bug with the OutputCahce module.... disabling it fixes the issue. i'll look into it later, see if I can track it down further and raise a bug.
Sep 5, 2013 at 8:39 AM