Comments (5)
AFAIK, MatchPattern() isn't spec'd anywhere and the benefit would be mostly for Chromium implementation. The *
wildcard with no escaping is easy enough to describe and implement and should handle all of the use cases that we have come up with. Not including escaping makes it easier for the humans who will likely be specifying the paths as well.
There's a chance we haven't come across a use case where a single-character wildcard is necessary.
I'd be more inclined to support filesystem path-like wildcards if there was an existing RFC or precedence in other standards for doing it since we're already doing some level of path-relative expansion but I haven't been able to find any.
from compression-dictionary-transport.
Do you think using the pattern of URLPattern API could be another option?
URLPattern API supports regular expression, but regular expression is too powerful.
The new proposal of static routing API for Service Worker (explainer) is using URLPattern, and the current proposal is prohibiting using regexp
type tokens. I think we should also prohibit using regexp
type tokens for compression dictionary transport.
+CC: @yoshisatoyanagisawa @wanderview @sisidovski
from compression-dictionary-transport.
For preventing regexp, we followed how URLPattern is used for Tabbed mode home tab scope. (crbug.com/1381374)
I am not sure URLPattern's wildcard is alined with POSIX.2 2.13 Pattern Matching Notation, which might be used for path name expansion in Unix shell.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06
from compression-dictionary-transport.
I filed an issue with URLPattern to see if it would make sense to split out a good chunk of the spec into a RFC. As it stands right now, trying to pull the existing URLPattern spec language into the compression dictionary ID would be way more complicated than it was worth but if there was a RFC-standardized way to specify the patterns it would be trivial.
I don't know that we need most of the functionality that it provides for this use case but the flexibility won't hurt either (as long as clients implementing the pattern matching support URLPattern already).
from compression-dictionary-transport.
Oh, I just filed #48 about using URLPattern. Please do that! As noted in whatwg/urlpattern#180, the format of the spec is not an issue.
from compression-dictionary-transport.
Related Issues (20)
- Consider support other Content-Encoding schemes HOT 2
- Clear Site Data for dictionaries HOT 11
- Exposing storage usage for dictionaries HOT 11
- Dictionary partitioning in browsers without tripled-keyed HTTP cache HOT 1
- Define mechanism for advertising non-bytestream dictionary formats
- expires or max-age HOT 4
- Supporting "no-cors" mode requests seems problematic. HOT 11
- Content-Type (MIME) of Dictionary HOT 5
- Zstandard Interpretation of Dictionary HOT 11
- What's the expected interaction model with Service Workers HOT 3
- URL matching should use URLPattern HOT 1
- Allow for dest matching in addition to URL pattern HOT 1
- Same-origin check, redirects, and navigations HOT 5
- URLPattern usage HOT 16
- A "perfect match" scenario HOT 2
- Provide mechanism for A/B testing
- Use case for TTL decoupled from cache freshness HOT 3
- expected implementation location HOT 9
- Explicitly Documenting the data type for the Link header 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 compression-dictionary-transport.