Comments (3)
Hi ping,
We debated this for some time and felt that non-versioning for the image files was the best option. I spoke with jsdelivr and confirmed that your issue with exvm-sg expiration shouldn't happen again.
When we do emoji image updates, jsdelivr purges their cache for those specific assets. If the browser does a modified check then the client will receive the new and updated emoji. Obviously if the browser doesn't do that check then they may receive an outdated file. We went with a max-age of 1 month for the images, which we felt was fair. After all it's just a suggestion to the browsers, doesn't mean they will follow it.
Also, jsdelivr prefers to not do versions on large file sets like this that often have few updates from version to version. It creates a lot of overhead in the cloning/forking process and they want to keep their repo as lightweight as possible.
I know this probably isn't the answer you wanted, but I hope you understand our position.
from emojione.
@kevinranks
I understand your points. But to clarify, I was not requesting that the CDN kept actual distinct versioned copies of the images, but to support a versioned "path" to the images that all point to the same 1 copy for cache-busting purposes.
Devs using sprites can already cache-bust by appending a pseudo version parameter to the css/sprite uri. Example:
/* Sprite CSS link */
<link href="//cdn.jsdelivr.net/emojione/assets/sprites/emojione.sprites.css?v=1.2.2" rel="stylesheet" type="text/css" />
/* Sprite CSS override */
[class*=emojione-] { background-image:url("//cdn.jsdelivr.net/emojione/assets/sprites/emojione.sprites.png?v=1.2.2") !important; }
But I can't use the same method for setting emojione.imagePathPNG
/ emojione.imagePathSVG
in javascript. Perhaps, the javascript lib can support the option of appending a user-defined parameter for cache-busting?
For example emojione.cacheBustParam = 'v=1.2.2';
and when that param is defined, the path to the emoji image becomes //cdn.jsdelivr.net/emojione/assets/png/1F479.png?v=1.2.2
from emojione.
Sorry for the confusion there. I like your idea about the cache busting parameter in the libraries. Let me talk to my team and see what we can do! 😄
from emojione.
Related Issues (20)
- Problems with ️FE0F character HOT 2
- Minified lib has broken RegExps HOT 7
- README.md for fonts contains broken links HOT 1
- Problematic second colon in shortcode for ☀️ (:sunny:️) HOT 7
- Packagist is out of date HOT 2
- Q: Flutter/Dart support HOT 3
- Update emoji(-strategy).json and awesome.map to 4.5 HOT 1
- Upgrade iOS library to 4.5 HOT 1
- iOS font uses emoji number characters for plaintext numbers HOT 1
- getting question mark instead of emojis
- what are these 5 lines for? HOT 1
- Edit IOS font file HOT 1
- Missing genders HOT 3
- [REQUEST] Why Doesn't Release the JoyPixels 5.0? HOT 3
- Emojione v4.5 not working on Android 5.0 (lower versions work) HOT 5
- Joypixels 4.5 with another police HOT 1
- joypixels stickers installation HOT 1
- Missing skin tone modifiers for “🤝” (U+1F91D) and “🤼” (U+1F93C) HOT 1
- Get some emoji error HOT 2
- @jbrecht this is a great catch, thank you for pointing it out. It does appear that the gender for codepoints without `2640` are not being correctly set in the emoji.json file. Woman Astronaut should have a `gender` value of `2640` (the base code point of the female sign). We'll make the adjustments and get this published as soon as possible. HOT 2
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 emojione.