wgenial / mimetypeicons-nodejs Goto Github PK
View Code? Open in Web Editor NEW๐ Site that provides mime type icons
Home Page: https://mimetypeicons.gq/.png
License: MIT License
๐ Site that provides mime type icons
Home Page: https://mimetypeicons.gq/.png
License: MIT License
The linked faenza-icon-theme is no longer on google code. This raises the question if there any plans to keep adding icons for new mime types.
Reproducible steps:
Expected behavior:
Get a temporary redirect (302)
Actual behavior:
Get a permanent redirect (301)
Unknown types should not get a permanent redirect to the default icon. And this can be considered true too if a available size is missing, eg: request for https://peicons-wgenial.rhcloud.com/doc?size=4
Browsers might honor the 301 redirect forever. And it will be hard to convince them otherwise regardless if we finally have new icons for those new sweet mime-types. A solution would be to issue a 302 in case the direct might change in the future.
Reproducible steps:
Expected behavior:
Get a permanent redirect (301) to https://mimetypeicons-wgenial.rhcloud.com/mimetypes-icons/scalable/application-pdf.svg
Actual behavior:
Get a temporary redirect (302) to https://mimetypeicons-wgenial.rhcloud.com/mimetypes-icons/scalable/application-pdf.svg
This saves a RTT if the icon is already cached. The browser refuses to show the icon before and during the request in case of a 301; just to be sure the original URL does not suddenly points somewhere else.
A 302 tell the browser it will not suddenly point somewhere else, and so the browser may cache this entire response.
Reproducible steps:
Go to https://mimetypeicons.gq/.ai
Expected result:
A 20x code with a image.
Actual result:
A 404 with the following HTML content:
Cannot GET /mimetypes-icons/32/application-postscript.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.