When go to my function URL, it executes twice.
/favicon.ico path always being the second execution.
Why is that happening?
browsers automatically fetch favicon
Ah, so I can't do anything about this?
You can check the path and return nothing at start so it will finish as fast as possible
not if you're opening it with a browser
Well, still goes to execution count. π
Ooh for that part Yes..
Another thing
At some point I do return res.redirect(new URL(document.url));
Shouldn't this redirect me, in the browser, to the url that is set in here?
If I run it from the browser
yes? depends on how you've done it
redirection is inside a utility function that is in another file. It doesn't redirect even tho it comes and executes that line of code.
Should redirect part rather be in the main method in main.ts rather than in the utility?
Nevermind
I actually forgot a return statement on utility call. It works. Ty
[SOLVED] Cloud function executes twice from the URL
Recommended threads
- Storage System
Hey guys, quick question regarding massive storage scaling. Iβm working in digital forensics and Iβm constantly dealing with huge binary disk images, usually be...
- API key without database.read/write
I had some issues with my previous API key and I deleted it then I wanted to create a new one and discovered the database checkbook has no database.read/write j...
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....