How does nuxt asyncData generate static files after generate?

I use nuxt to do a project that separates the front and rear ends, and uses docker to build the project independently. When the server needs generate to generate static files to access, and asyncData obtains the initial data, the data obtained by my local npm service has no problem, but when I put it behind the server generate, whenever the backend interface uploads updates, the initial data I obtain in asyncData remains unchanged, which is still the data before the interface update. And I can get the updated data after uploading and rebuilding, whether it is cached or something else.

Mar.02,2021

recently encountered the same problem in learning nuxt,. Have you solved


I guess it is because when you are in generate, he will traverse all your router, and then execute the methods in asyncData to statically all html files, so the data is generated by generate to generate a script in html to execute, so when the interface changes, The data of the website will not change with it


happens to encounter this problem, have you solved it? God

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b26c14-2b857.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b26c14-2b857.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?