mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-06 08:36:02 +08:00
use browser engine when no-cache is set
This commit is contained in:
parent
54abc175bb
commit
dc80020ade
@ -396,6 +396,9 @@ export class CrawlerOptions extends AutoCastable {
|
||||
if (engine) {
|
||||
instance.engine = engine;
|
||||
}
|
||||
if (instance.noCache) {
|
||||
instance.engine ??= ENGINE_TYPE.BROWSER;
|
||||
}
|
||||
|
||||
const keepImgDataUrl = ctx?.req.get('x-keep-img-data-url');
|
||||
if (keepImgDataUrl !== undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user