r/java • • Jan 01 '20

Java on the Desktop

https://www.youtube.com/watch?v=M1NszZ_K2yk&t=0s
110 Upvotes

40 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jan 03 '20

No it doesn’t? They’re distinct elements. I’m not talking about an image.

1

u/pjmlp Jan 04 '20

A full page can be cached, just like page elements as well.

1

u/[deleted] Jan 04 '20

This is patently false. You have to be trolling.

<div className="foo">My Banner</div>

Will absolutely not be cached on separate pages because the browser does not know that the elements are indistinct.

2

u/pjmlp Jan 04 '20 edited Jan 04 '20

Another one that never learned about SSR component frameworks.

The browser only sees the full rendered page, your MyBanner would be a component on the SSR framework.

Plus there is service workers to cache stuff on the index db, and application manifests to control browser caching.

And then there are Web Components as well, if something more dynamic is required.