Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

First class static content #982

Merged
merged 8 commits into from
Feb 15, 2013

Conversation

grumpydev
Copy link
Member

Moved static content to be "first class" so it now runs before the main pipeline, security etc.

If secure content is required, It's possible to disable the new hook by setting it to DisabledStaticContentProvider in NancyInternalConfiguration, then calling StaticContent.Enable to enable to old style, pipeline based, static content.

Also added automatically responding to conditional requests (based on etag or last modified), and returning 304 as appropriate.

grumpydev added a commit that referenced this pull request Feb 15, 2013
@grumpydev grumpydev merged commit 81f994c into NancyFx:master Feb 15, 2013
@grumpydev grumpydev deleted the FirstClassStaticContent branch April 7, 2014 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant