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

Add headers #125

Open
petrsvihlik opened this issue May 25, 2021 · 2 comments
Open

Add headers #125

petrsvihlik opened this issue May 25, 2021 · 2 comments

Comments

@petrsvihlik
Copy link
Owner

public async Task<ActionResult> Detail(string id, string wopiAction)

https://wopi.readthedocs.io/en/latest/hostpage.html#host-page-headers

@dviry
Copy link
Collaborator

dviry commented Feb 28, 2025

that doc does not exist any longer - could this be the information you originally linked?

https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online/hostpage#host-page-headers

If the host page headers are not correctly set, some browsers might cache the response, which can result in the host page not properly reloading when the user navigates to it...
To prevent this, at the very least, set the following headers on the host page.

Cache-Control: no-cache, no-store
Expires: -1
Pragma: no-cache
Other headers, such as Date and Vary are useful as well.

@petrsvihlik
Copy link
Owner Author

Yes, that's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants