mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-15 02:15:56 +08:00
fix: robots-txt cache location
This commit is contained in:
parent
a7a41250d4
commit
101cb19dde
@ -31,7 +31,7 @@ export class RobotsTxtService extends AsyncService {
|
|||||||
|
|
||||||
async getCachedRobotTxt(origin: string) {
|
async getCachedRobotTxt(origin: string) {
|
||||||
const digest = md5Hasher.hash(origin.toLowerCase());
|
const digest = md5Hasher.hash(origin.toLowerCase());
|
||||||
const cacheLoc = `/robot-txt/${digest}`;
|
const cacheLoc = `/robots-txt/${digest}`;
|
||||||
let buff;
|
let buff;
|
||||||
buff = await this.firebaseStorageBucketControl.downloadFile(cacheLoc).catch(() => undefined);
|
buff = await this.firebaseStorageBucketControl.downloadFile(cacheLoc).catch(() => undefined);
|
||||||
if (buff) {
|
if (buff) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user