-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Caching kroki svgs #2020
Comments
But is this really true? When checking plantuml, I found it sets these headers:
And my browser respects them, and consults the cache - so the problem you are describing does not exist as far as I can tell. |
Your feature is useful for me for a different reason however: When plantuml / kroki rendering is requested by the server, rather than the client, I don't need to expose my plantuml / kroki servers to the internet. That way I don't need to figure out how to do authentication for those. |
@twoi you are correct when you look at it from a single client point of view, but there is no need to slow down the first page view for every client who access the page and to create that load on the rendering service... |
The only problem is that in contrast to rendering, while editing a plantuml diagram on a page, a hard-coded plantuml server will be used, leaking potentially private data to https://plantuml.requarks.io (perhaps that was the whole point of wiki.js ;-) Described here: #3583 So once this is fixed and the configured plantuml server gets used for editing as well (in that case presumably called from the browser), I would need to expose the server on the internet... |
Seems like you need to express your valid concerns on your mentioned discussion wo they can address it in the pr there |
* feat: Caching kroki svgs requarks#2020
When using kroki to generate umls in markdown, every page loads calls the kroki api which is redundant and time consuming.
@NGPixel do you think that inlining the resulting svg on render will give better performance?
If the answer is yes, I'm willing to create a pr!
The text was updated successfully, but these errors were encountered: