Faker
KPCKevin Powell - Community
•Created by Faker on 12/11/2024 in #front-end
Axios vs Fetch
yeah, at that moment, I never thought of that, I should try
17 replies
KPCKevin Powell - Community
•Created by Faker on 12/11/2024 in #front-end
Axios vs Fetch
I already make use of say x number of fetch, I didn't include the logic of handling a specific error respond ;c
17 replies
KPCKevin Powell - Community
•Created by Faker on 12/11/2024 in #front-end
Axios vs Fetch
yep but the thing is when we would send a request, we would obtain an error, based on that error, we would trigger a specific logic
17 replies
KPCKevin Powell - Community
•Created by Faker on 12/11/2024 in #front-end
Axios vs Fetch
what are interceptors important ? what if we don't use them ? how would the work be more tedious ?
17 replies
KPCKevin Powell - Community
•Created by Faker on 12/11/2024 in #front-end
Axios vs Fetch
yep I see
17 replies
KPCKevin Powell - Community
•Created by Faker on 12/11/2024 in #front-end
Axios vs Fetch
ohhh, in my project, I needed to implement the use of sessions. Now I should have included the idea of session time out. The thing is I did that at the very last end when I already have use x number of fetch statement and so I should modify the logic of "if server responds with a specific error which indicates server timed out, then do that..."
Since I needed to include that if statement logic in every fetch, with an interceptor we could have done it only once ?
17 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #back-end
Connect.sid in express using express-session
should we prevent that?
3 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #back-end
Connect.sid in express using express-session
Is that normal for a cookie to be refreshed on a page reload in general ?
3 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #back-end
Cookies not stored in postman when we use the front-end
yepp I see, thanks !
15 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #back-end
Cookies not stored in postman when we use the front-end
yepp I see, everything works fine for now, it's good to know we can do that though :c, thanks a lot !
15 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #back-end
Cookies not stored in postman when we use the front-end
Ahhh true, I think we can since we have the option "add cookies" something like that
15 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #back-end
Cookies not stored in postman when we use the front-end
my bad sorry
15 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #back-end
Cookies not stored in postman when we use the front-end
yeah it's normal I think, don't know why I had a doubt, I was using postman to log in and then test some behaviours based on that, then in my head, I had this idea "log in using the web, then use postman to test same behaviours" but this isn't possible, postman won't store the cookies created on the web :c
15 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #front-end
Why image appears "pixelated" despite object-fit cover used
Thanks guys, really appreciate, will have a look
16 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #front-end
Why image appears "pixelated" despite object-fit cover used
Ty !
16 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #front-end
Why image appears "pixelated" despite object-fit cover used
I don't like to pay 😭 will try to see on picsum :c
16 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #front-end
Why image appears "pixelated" despite object-fit cover used
stock images, like you mean with websites like picsum ?
16 replies
KPCKevin Powell - Community
•Created by Faker on 12/8/2024 in #front-end
Why image appears "pixelated" despite object-fit cover used
do you guys know any website where I can get good quality img resolution for football please, I need to find the "best" images for football :c
16 replies
KPCKevin Powell - Community
•Created by Faker on 12/7/2024 in #back-end
When creating a sign out route, should post or get request be used? why ?
hmm imagine we have a sign out link...
When that web page refreshes/loads, our browser sends a get request to get all contents of current page. When it sends a get request for a particular image, it may happen our image has the endpoint of sign out appended, like normally when we click on the image, we should log out but since it's a get request loading that image, we will automatically be signed out ?
Now if we have a link instead like in an anchor tag, why would the link be a problem here please, like we would eventually need to click on the link to just sign out, how does post prevents all that.
31 replies
KPCKevin Powell - Community
•Created by Faker on 12/7/2024 in #back-end
When creating a sign out route, should post or get request be used? why ?
okok but in the case of sign out, why whould we cache it? also, caching is something done automatically ? Like when we say "get request usually cache the data", this means it is done automatically ? we have no control on it ?
31 replies