Comments (8)
We did discuss the use case of limiting number of consumed bytes — e.g. at most X KB of Javascript — regardless of where they come from (cache or network), which is why we went with "content size".. I'm OK with excluding that use case if we think it's orthogonal and better tackled elsewhere, but want to make sure that we're all on the same page. If memory serves, I think Ojan was interested in this angle.
If we do scope it down.. "Network Policy" is very broad, which may be a good thing, if we want to expand what it controls in the future? Alternatively, perhaps "download policy" is closer to what we're tackling here?
from transfer-size.
@ojanvafai and I discussed this yesterday, he was on board.
I could imagine having a max upload and max download in the end, but starting with max download. What other network policies can we imagine that might fit in here in the future? All resources must use QUIC? Only allow the given certificate?
from transfer-size.
FWIW, QUIC is not policy material.. I doubt you want pages to fail if UDP can't go through. Certificates are already handled by pinning, and not something we should venture into here?
Upload is more interesting and I can see some rationale for that. Although, arguably the user is in control there.. unless the site is doing some malicious, so perhaps that's redundant? I'm a bit worried by "Network" being too broad.
from transfer-size.
Network Usage Policy?
Network Size Policy?
It might be useful to have the broader name. It's unclear to me. We should get feedback from @ojanvafai and others.
from transfer-size.
It's unclear to me too. I don't feel strongly.
Another alternative would be DataSizePolicy to match the Save-Data header.
NetworkDataSizePolicy? /me ducks :)
from transfer-size.
Transfer Size Policy? We expose transferSize
as part of Resource Timing API, which maps directly what we're discussing here.. I think: https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-transfersize
from transfer-size.
Seems fine to me.
from transfer-size.
TSP works for me as well.
from transfer-size.
Related Issues (16)
- TAO opt-in: pros, cons, and implementation HOT 3
- Setting transfer size in the response header? HOT 2
- Report-only mode HOT 2
- CSS property for TSP? HOT 11
- Header vs attribute configuration HOT 1
- Specifying limits in iframe request headers
- Questions about design HOT 4
- Document resource-types supported in transfersize HOT 1
- transfer-size as a Feature-Policy? HOT 2
- Is this still active? HOT 2
- How do we do data accounting for ServiceWorker requests? HOT 12
- Accounting with encodedBodySize doesn't work with SDCH HOT 4
- Mitigating the cross-origin size leak if we don't use TAO opt-in
- Restrictions modified by browser config or platform flag? HOT 2
- Scenario: video playback HOT 25
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 transfer-size.