How SSR works