Comments (4)
Hey, thanks!
What's the mimetype it's adding instead? If you inspect the file content, is it correct?
I'm thinking that if the content is correct but the mime type isn't, then it's a discrepancy between mime
and mime/lite
.
Although, I don't think that's likely to be the case because I'm serving SVGs in my apps with appropriate mimes/visual behavior.
If content is empty, then you're probably looking for --dev
mode
from sirv.
You're right. It looks like removing the dev
flag fixes the issue.
I was seeing <img>
& background-image
not displaying the svg image.
from sirv.
Oh wait, adding the --dev
flag causes the issue?
from sirv.
Oh okay, I see the mistake. This is indeed a bug with dev mode. Will fix immediately.
Thanks!
from sirv.
Related Issues (20)
- Add Changelog HOT 2
- Document "dev mode"
- [feature] option to fail on port conflict HOT 1
- `/foo%2Fbar.txt` returns `/foo/bar.txt`
- Filter files more flexibly HOT 4
- Range request overlap is handled incorrectly HOT 2
- Option to enforce case sensitivity HOT 1
- Add some API to refresh / update the cache HOT 1
- Question: reduce cache size? HOT 2
- net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) HOT 1
- [Feature Request] New option `base`. (Aka base path, public path, asssets URL root.)
- When static file changed to longer during run HOT 3
- Dev mode with cache control HOT 1
- Support for POST request HOT 2
- Add `charset=utf-8`
- Range suffix requests return prefixes instead
- Add "watch" mode to update filesystem cache HOT 2
- Downloading gzipped files in browsers HOT 4
- Support filenames that end with `+`
- Is it possible to disable the fallback to index.html
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sirv.