sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.85k stars 136 forks source link

Cache problem while updating a current project #318

Closed sbstnplcn closed 6 years ago

sbstnplcn commented 6 years ago

Hello,

I have a cache problem while updating a current project. I need to teardown the project, then recreate it to have the last version of my code available online.

Any idea ? Thanks

Working on Vue.js and Quasar PWA framework. Node v9.8.0

sintaxi commented 6 years ago

That's strange. Can you show me steps to reproduce the problem?

sbstnplcn commented 6 years ago

I build the project with the Quasar-cli command, and just deploy the build files with the "surge" command.

Then, I try to reload my browser without cache and nothing happens, it's still my old code.

So, without any changes on my files, I teardown the project, recreate it with the same domain (with "surge" command) and it's working.

That's the only project that need that

warningnonpotablewater commented 6 years ago

I have exactly the same problem

How to reproduce:

  1. Deploy an example site (I deployed it with one empty text file "a.txt")
  2. Delete one random file from the project (in my case "a.txt")
  3. It will be still there

How to fix it temporarily:

  1. Try redeploying the site again (1-3 times in my case)
sintaxi commented 6 years ago

@Lupshenko thanks. Can you let me know what version of surge you are on? and what OS you are using? Cheers.

sbstnplcn commented 6 years ago

MacOs High Sierra and Surge v0.20.1 for me

sintaxi commented 6 years ago

@sbstnplcn thank you. Looks like it may be a cache invalidation issue. Do you see the success message when your build completes?

sbstnplcn commented 6 years ago

Yes, I have the "success" message when build and when deploy

sintaxi commented 6 years ago

Thanks for your help. I've been able to implement a fix. Please reopen if you still have issues.