Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

AspNetCoreModule status code when serving app_offline.htm #204

Closed
dolly22 opened this issue Jun 10, 2016 · 4 comments
Closed

AspNetCoreModule status code when serving app_offline.htm #204

dolly22 opened this issue Jun 10, 2016 · 4 comments

Comments

@dolly22
Copy link

dolly22 commented Jun 10, 2016

Is it possible to configure status code returned by AspNetCoreModule? It returns 200 OK which has it's issues.

For example when serving static assets through CDN configured with origin pull, app_offline.htm page content may be cached when 200 OK is returned.

Classic ASP.NET returns 503 Service Unavailable when serving app_offline.htm requests.

@Tratcher
Copy link
Member

@pan-wang, this should be changed.

@naveedahmed1
Copy link

@Tratcher is it possible to add Retry-After header as well when serving app_offline.htm since search engines suggest adding it https://webmasters.googleblog.com/2011/01/how-to-deal-with-planned-site-downtime.html

@Tratcher
Copy link
Member

Tratcher commented Oct 4, 2017

@naveedahmed1 that's an interesting idea. Please open a new issue in https://github.com/aspnet/AspNetCoreModule/issues

@pan-wang
Copy link
Contributor

pan-wang commented Oct 4, 2017

where does the value of 'Retry-After" come from? Host has no clue about it.

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

No branches or pull requests

5 participants