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

Differentiate between request types #274

Open
lastmjs opened this issue Jan 4, 2020 · 0 comments
Open

Differentiate between request types #274

lastmjs opened this issue Jan 4, 2020 · 0 comments

Comments

@lastmjs
Copy link
Owner

lastmjs commented Jan 4, 2020

Not all requests for file extensions are equal. For example, requesting a JSON file as an ES module import is different from requesting a JSON file with the link rel manifest element...right now this will break, because a request for a manifest file will return a JavaScript module with the json exported. We will have the same problem for CSS and images. We need to somehow differentiate, and return files unmodified sometimes and modified other times. It would be nice if a request header for ES modules was set...but I'm not sure there is a standard one nor do I know how to set it for all ES modules with a Zwitterion build

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

1 participant