Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Always cache remote content by default #160

Open
jboxman opened this issue Sep 10, 2021 · 0 comments
Open

feat: Always cache remote content by default #160

jboxman opened this issue Sep 10, 2021 · 0 comments

Comments

@jboxman
Copy link
Contributor

jboxman commented Sep 10, 2021

This is possible.

https://docs.asciidoctor.org/asciidoc/latest/directives/include-uri/#caching-uri-content

Reading content from a URI is obviously much slower than reading it from a local file.

Asciidoctor provides a way for the content read from a URI to be cached, which is highly recommended.

To enable the built-in cache, you must:

  1. Install the open-uri-cached gem.

  2. Set the cache-uri attribute in the document.

When these two conditions are satisfied, Asciidoctor caches content read from a URI according the to HTTP caching recommendations.

And these remote calls might be why in some rare situations, ascii_binder hangs forever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant