Caching


On this page

    When remote documents are fetched over HTTP, a Comunica engine can cache documents to optimize future reuse. If your application works over volatile resources, then you may want to invalidate this cache, which can be done as follows:

    // Invalidate the full cache
    myEngine.invalidateHttpCache();
    
    // Invalidate a single document
    myEngine.invalidateHttpCache('http://example.org/page.html');