-
Notifications
You must be signed in to change notification settings - Fork 6
Deduplicate script fetches #152
Comments
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (google#147) - trustedBiddingSignalsKeys (google#148) - auctionSignals (google#149) - browserSignals (google#150) - Timeouts (google#151) - Deduplication of script fetches (google#152) - Optimization of worker support code (google#153) - Public TypeScript typings for worklet script authors (google#154) Fixes: google#20
Does this actually cause multiple fetches on the wire? I would expect them to hit the browser cache, and be very fast? |
Good question. In principle it could always depend on the cache headers, and explicit reliance on browser cache has bitten us before in other contexts. I think it's probably better to do whatever Chrome does; I vaguely recall that they do explicit deduplication, but I'm not confident in that and should check. |
Also, the fetches go out in parallel, not serially. Does Chrome wait for the first response in that case to see if it's cacheable? If not then this won't work. |
(I do not currently make any attempt at all to test the interaction of any of this code with browser-cache behavior. I'm not sure to what extent Service Workers make this possible.) |
It should work fine with parallel requests: chrome or any other browser will notice that it has multiple outstanding requests for the same resource, and wait for them to come back |
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (google#147) - trustedBiddingSignalsKeys (google#148) - auctionSignals (google#149) - browserSignals (google#150) - Timeouts (google#151) - Deduplication of script fetches (google#152) - Optimization of worker support code (google#153) - Public TypeScript typings for worklet script authors (google#154) Fixes: google#20
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (google#147) - trustedBiddingSignalsKeys (google#148) - auctionSignals (google#149) - browserSignals (google#150) - Timeouts (google#151) - Deduplication of script fetches (google#152) - Optimization of worker support code (google#153) - Public TypeScript typings for worklet script authors (google#154) Fixes: google#20
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (google#147) - trustedBiddingSignalsKeys (google#148) - auctionSignals (google#149) - browserSignals (google#150) - Timeouts (google#151) - Deduplication of script fetches (google#152) - Optimization of worker support code (google#153) - Public TypeScript typings for worklet script authors (google#154) Fixes: google#20
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (google#147) - trustedBiddingSignalsKeys (google#148) - auctionSignals (google#149) - browserSignals (google#150) - Timeouts (google#151) - Deduplication of script fetches (google#152) - Optimization of worker support code (google#153) - Public TypeScript typings for worklet script authors (google#154) Fixes: google#20
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (google#147) - trustedBiddingSignalsKeys (google#148) - auctionSignals (google#149) - browserSignals (google#150) - Timeouts (google#151) - Deduplication of script fetches (google#152) - Optimization of worker support code (google#153) - Public TypeScript typings for worklet script authors (google#154) Fixes: google#20
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (google#147) - trustedBiddingSignalsKeys (google#148) - auctionSignals (google#149) - browserSignals (google#150) - Timeouts (google#151) - Deduplication of script fetches (google#152) - Optimization of worker support code (google#153) - Public TypeScript typings for worklet script authors (google#154) Fixes: google#20
This is the minimum working implementation. Features to be added later include: - Arbitrary metadata instead of just a static price (#147) - trustedBiddingSignalsKeys (#148) - auctionSignals (#149) - browserSignals (#150) - Timeouts (#151) - Deduplication of script fetches (#152) - Optimization of worker support code (#153) - Public TypeScript typings for worklet script authors (#154) Fixes: #20
As of #20, if n interest groups in a single auction all use the same
biddingLogicUrl
, we fetch it n times. This is clearly undesirable.The text was updated successfully, but these errors were encountered: