fnando / browser

Do some browser detection with Ruby. Includes ActionController integration.
MIT License
2.45k stars 361 forks source link

Feature request: detect browser prefetch #497

Open feliperaul opened 4 years ago

feliperaul commented 4 years ago

It would be nice to have browser.prefetch? that detects if the request is coming from a Omnibar prefetch that modern browsers perform.

This stackoverflow answer (https://stackoverflow.com/questions/9852257/http-header-to-detect-a-preload-request-by-google-chrome) tells that each browser vendor sends different headers, being:

StanBright commented 3 years ago

That'd be very helpful.

fidalgo commented 3 years ago

As I've dig into this subject I will let here some useful documentation I've found about the issue, in case it can help anyone else: