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 flag for serving SPAs #208

Closed
2 tasks done
ro-savage opened this issue May 31, 2017 · 2 comments
Closed
2 tasks done

Add flag for serving SPAs #208

ro-savage opened this issue May 31, 2017 · 2 comments

Comments

@ro-savage
Copy link

ro-savage commented May 31, 2017

Would be great to a flag for SPAs that adds two features

  • Changes caching options so that index.html has a cache of 0, and all other files have the amount passed in the --cache flag (and maybe a sensible default if not cache flag was passed)
  • Changes the folder redirect rule so that all files that aren't found get redirected back to /index.html

Happy to make PR for this.

@ro-savage
Copy link
Author

Looks like you already have the option to always save index under -single.

So how about when using this flag, we add better caching defaults?

@leo
Copy link
Contributor

leo commented Jun 20, 2017

Moving this discussion to the PR

@leo leo closed this as completed Jun 20, 2017
@vercel vercel locked and limited conversation to collaborators Jun 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants