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
Cacheable view served via /ajax/view #9794
Comments
Your fix seems reasonable. As long as elgg/Ajax responses are always served with JSON content type. |
I'm sure your bigger Q is should we allow it. I don't know. |
I am fine either way. I just think it would be odd to serve raw image bytes for example with elgg/Ajax having no clue what the content type is in |
Not a blocker for 3.0 |
This has long been fixed in bfc860c We currently allow it and send the correct content type |
We currently allow any simple cache view to be served via /ajax page handler, which includes images etc. I am not sure this was the intended behavior - as far as I can understand we wanted to have a BC way to serve only JS/CSS views, but after the big simplecache refactor we are sending everything and with wrong headers.
The text was updated successfully, but these errors were encountered: