Code history in timeline
No.1. Problem with Git rebase
Problem:
Rebase + code changes => commit => author is overrided by latest author after rebase
Solution:
- Git commit –amend -m “[message]” -author “user.name <user.email>”
- Git reset –soft [head]
No.2. Problem with client browser cache in redirection
Problem:
Redirecting 301 – permanent when going a page for a certain case => Clicking on a link that has href as same as redirected url => Alway return 301 redirection even this is not the case for rediretion
Reason:
The redirection 301 – Permanent is stored in browser cache => So the browser automatically redirects to the new one as same as previous behavior
Solution:
Only using 301 – permanent redirection if we always need to redirect in all cases. In this case we should use 302 – temporary redirection instead.