Skip to content

Are static assets cached between requests? #651

Answered by uyamazak
colinmollenhour asked this question in Q&A
Discussion options

You must be logged in to vote

@colinmollenhour
Hi,

I have not checked the detailed behavior, it may be cacheable will they be cached, per Puppeteer's Page.

Because Puppeteer's Page has setCacheEnabled() method defaults to true.

https://pptr.dev/api/puppeteer.page.setcacheenabled

Note that hc-pdf-server uses multiple Pages by default.

If you want to Page.setCacheEnabled() to false, I will consider adding the feature to switch in env.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@colinmollenhour
Comment options

Answer selected by uyamazak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants