[advanced] Violation of one url = one resource seo rule

8 views
Skip to first unread message

Alexander Obuhovich

unread,
Aug 7, 2012, 1:56:49 PM8/7/12
to Bugs In-Portal
There is a SEO rule, where 1 page content must have exactly 1 (and not more) url to it. If page content changes you:
  • either must send proper caching headers (which In-Portal doesn't do at all)
  • or change page url 
But if we show user-specific content (content that is one for logged-in users and other for non logged-in users) on a page, then, because we have same url to that page, browser can agressively cache it resulting after logout user being presented with logged-in only page version.


This wasn't a problem before, but now once Google Chrome v21 (with MacBook Pro Retina support) is out it actually used it. I saw this on Vista (not Windows 7):
  1. visit website (you're not logged in)
  2. see "please login" sidebox on the left (while on home page)
  3. login
  4. browse through website
  5. press logout link
  6. see logged-in side box on the left instead of "please login" side box

Despite long story problem is quite easy to fix - just add "?logout=1 or ?logged_out=1" parameter to page url where user is redirected after logout.

Phil

unread,
Aug 8, 2012, 3:47:55 PM8/8/12
to in-port...@googlegroups.com
After reading your post, I made some tests on my websites to see if they were affected, and I've found that same case happen when you login on a page that don't redirect you to another page after successful login.
So we need to add ?login=1 or ?login=0 to fix login and logout cases.

Alexander Obuhovich

unread,
Aug 8, 2012, 4:47:04 PM8/8/12
to in-port...@googlegroups.com
To summarize:
  • add "?logged_in=1" to page url, that is shown after user performed a login
  • add "?logged_in=0" to page url, that is shown after user performed a logout


--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/WfWZVr1a1mMJ.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Dmitry A.

unread,
Aug 15, 2012, 1:52:59 AM8/15/12
to in-port...@googlegroups.com
Yes, I believe it's a good idea

Alex would you please report new task for this work.

Cheers!

DA

Alexander Obuhovich

unread,
Sep 27, 2012, 6:50:34 AM9/27/12
to in-port...@googlegroups.com
Task: http://tracker.in-portal.org/view.php?id=1406

Ready for testing.


To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/7lxleglUY9YJ.

To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.
track_login_state_in_url_fix.patch
Reply all
Reply to author
Forward
0 new messages