No way to know. But think about this. Once upon a time there were no incandescent lights, but spiders were successfully surviving. Then, humans invented incandescent lights, and spiders started building webs by the lights, in order to catch moths and bugs attracted by the light. Since the spiders have no apparenct way of teaching each other, how did they learn that “trick”? Amazing.