Skip to content

single_use and deactivated_at #148

Answered by ash-jc-allen
khalidzaibi asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! Sorry to hear that you're having problems with the package.

From looking at your video, it looks like your short URLs have a 301 redirect status code? Is that right?

If so, this could be the reason for your activation times and single-use links not working. If your web browser is redirected with a 301 status code, then it'll treat it as a permanent redirect. This means that next time you visit your short URL, your browser will automatically redirect you to the destination URL without hitting your server. This means that we can't handle the redirect in the Laravel app to make sure that it's still valid.

If you create your short URLs with a 302 status code instead, the browser will tre…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ash-jc-allen
Comment options

You must be logged in to vote
1 reply
@ash-jc-allen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #146 on September 11, 2022 14:25.