B
B
Bowen2016-08-23 21:15:14
symfony
Bowen, 2016-08-23 21:15:14

What you need to know when developing a SPA and how to cook it in general?

Good evening!
I started to develop SPA
I chose the technologies that I liked and suitable ( Angular2 + Symfony3) but then I began to ask all sorts of questions, for example:

  1. Recently, I came across an article on Habré: CRAWL of dynamic pages for Google and Yandex poi ...
    To be honest, I was surprised, because CRAWLI only learned about it for the first time only from there, and as I understand it, you need to take care of this only in case of development SPAor am i wrong?
  2. What to do with caching, what to use?
    I thought about a bunch , Varnish + ESIwell, or SSI в связке с Nginx.but I'm not sure, I also never had anything to do with them before, I read something once, and even then I forgot
  3. What about pages that don't exist?
    In Angular 2 you can redirect the user to a specific component, provided that the requested route does not exist, but this does not really solve anything, because you also need to return the appropriate Status Code
    one. How can this be done?
  4. Is it possible to Angular 2specify default values ​​for parameters in a route?
    For example, as inSymfony
    @Route("/{id}", name="param", requirements={"id": "\d+"})

    Unfortunately, I couldn't find anything on this subject.

I would really appreciate and appreciate your advice and help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Romanenko, 2016-08-26
@slimus

1. Look towards catberry . When choosing a framework for SPA, there were always white problems with search engines, so this framework was written in which there is no indexing problem
2. Again, we use the nginx cache (proxy_cache, fastcgi_cache, ...) + redis on the server
3 and 4. not competent to answer .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question