Skip to content

Memoize the checking of resources on hosts to save on network requests #2

Open
@mandatoryprogrammer

Description

@mandatoryprogrammer

sonar should never make two requests for a resource on a host. It should keep a running table for resources that it knows exist/doesn't exist and then check the table before potentially wasting time with another network operation.

For example:

var resource_table = {
    '192.168.1.2': ['/resource.css', '/resource.png', '/resource.jpg' ],
    '192.168.1.3': ['/resource.css', '/other.png', '/example.jpg' ],
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions