Use the 'request.user_agent()' to determine which version of content to 
send. That will get you the scraper (aka robot) reading what you want.

As far as people with javascript disabled, I'd suggest you ignore those 
users, it amounts to less than 2% anyway.

On Sunday, December 30, 2012 10:19:29 PM UTC-7, Alec Taylor wrote:
>
> I have static versions of my pages generated by automatically 
> headlessly snapshotting my AngularJS rendered pages. 
>
> When JavaScript is disabled or a scraper views the site; I want the 
> static versions to be served. Otherwise I want to server the 
> JavaScript-heavy files. 
>
> How do I do this in web2py; and what are the downsides of this approach? 
>
> Thanks for all suggestions, 
>
> Alec Taylor 
>

-- 



Reply via email to