Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response cache returns json object instead of my html result #180

Open
JumpLink opened this issue Feb 18, 2022 · 1 comment
Open

Response cache returns json object instead of my html result #180

JumpLink opened this issue Feb 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@JumpLink
Copy link

If the response is cached the cache returns an object with content-type: application/json instead of content-type: text/html;

The cached returned object looks like this:

{
  "body": "<the rendered html string>",
  "status": 200,
  "headers": {}
}
@JumpLink
Copy link
Author

Looks like the problem could be fixed simply by setting the property __isActionResult in the cached object of type ActionResult to true.

@irustm irustm added the bug Something isn't working label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants