question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cache remoteAddress

See original GitHub issue

For https://github.com/sindresorhus/got/pull/827 we need the remoteAddress in the cache. This would require (as I understand correctly) connection: { remoteAddress: response.connection.remoteAddress } in the following lines: https://github.com/lukechilds/cacheable-request/blob/d50e6af350b6f52814c71ce3908e704a3d5f428e/src/index.js#L119-L124

And a connection parameter in https://github.com/lukechilds/responselike/blob/093a21bc25ecc82daf17f436c13fd807e5d8eee0/src/index.js#L7

Is this a conceivable change?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
sindresorhuscommented, Aug 18, 2019

If we can’t change the default, there needs to be a way for us to hook it so that we can add it ourselves. (See https://github.com/sindresorhus/got/pull/827)

2reactions
jaredwraycommented, Sep 10, 2022

@JaneJeon - we are now working on this and plan to use hooks as part of the implementation for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

remoteAddress | Apple Developer Documentation
For multipath protocols, this is the remote address of the initial flow. ... whether the resource was loaded, pushed, or retrieved from the...
Read more >
Not clear for how long does openVPN caches the resolved IP ...
Currently when running openVPN client in log it says: Preserving recently used remote address: For how long it will cache it? How to...
Read more >
Cached Remote Address is not updated · Issue #929 - GitHub
When I connect to my vpn on yesterday, the vpn client caches the ip address for the host name. But the cache is...
Read more >
remoteAddress - Unleash
Unleash Proxy Client/io.getunleash/UnleashContext/remoteAddress. remoteAddress. val remoteAddress: String? = null. Content copied to clipboard. Sources.
Read more >
How to get the cache data from specified ChannelHandler in ...
In the server,when receiving request login from every client,I will cache the data using ConcurrentHashMap<String, String>() in the method ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found