Hello, I need to make a question before running nopcommerce on production.
I see that every page has a very big VIEWSTATE.
I always avoided this on my sites, doing a pre-render of the HTML and making the VIEWSTATE empty.
I feel that this is a major point for website SEO optimization and indexing.
So I am asking : as you stress that NopCommerce ( which is very vell built ) is also
headed to strong SEO... why there is this big VIEWSTATE in every page ?
In your opinion it is not a problem ?
Or it is in your roadmap to be removed, in future versions, just using Session ?
Thank you for any thought and reply.
Personally I don't think you could take off the ViewState. however you may compress the size of ViewState.
No, you can't delete the ws..
Anyway it will be just skipped from search engines.
Another good reason for an ASP MVC version.
But it's not too hard with the current version to move viewstate to the bottom of the page.
Here's one solution: http://sebnilsson.blogspot.com/2010/03/aspnet-webforms-seo-moving-view-state.html
If you are using nopCommerce in a shard hosting environment, I think you will see better performance from using ViewState to store objects rather than Session because too many objects in Session will take up the server's system resources. Using ViewState will keep the web server responsive. If you have many visitors to your website, Session variables can bog down the system. In my opinion, Session variables should only be used for sensitive data that you do not want to be passed over the line like usernames, emails, passwords, etc. Another option would be to serialize your objects into your database for storing and retrieving.
How would viewstate ever affect SEO?
SEO is highly competitive. The internet is no longer like the old days when H1 tags and meta keywords gave good search rankings. In today's internet marketing, a person has to take advantage of every little thing they can to keep an edge.
Viewstate populates web pages with a large amount of data that has no meaning other than to the ASP.NET engine.
Search engines rely heavily on the content of web pages to reveal what the website has to offer. Internet marketers have to realize that every trick in the book has already been tried. Search engine developers are not dumb. In many cases, search engines will penalize people for trying to cheat with their SEO. Keyword stuffing is a big one. Stuffing web pages full of keywords can get a website penalized.
Everything a computer does has to be read sequentially. There is no way around it. If you think about it, search engine crawlers that read the web pages of the internet work 24/7, trying to read as much as possible. Now there are more web pages than there are people. How can a search engine keep up?
My point is that with a large amount of Viewstate on the page, a search engine will likely bypass a website littered with Viewstate rather than try and index it in their databases. An online marketer should be aware that content is their most valuable asset. A web developer must take steps to ensure that web crawlers like Google or Bing will have an easy time reading the content of the web pages.