Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Codazed15157y@ScribeOfGoD The last time I used git to manage my websites, the cache would get all fked up every time I would pull the file changes from the git repository.
-
Codazed15157y@ScribeOfGoD I started to write a reply, then it hit me. Does Cloudflare cache website files?
-
Meta33867y@BaconatorNoVeg Please read the section mentioning the "Cache-Control" header and "s-maxage" of this article:
https://support.cloudflare.com/hc/...-
and re-gain your faith in this awesome service called Cloudflare. -
@BaconatorNoVeg Cache is enabled by default as part of the DDoS mitigation process, its much easier for then to serve the files to the user than to act as a proxy all the time.
-
creator22067y@BaconatorNoVeg I never faced this issue and I have been using git for last 8 years. Can you tell me more about this cache issue? I am asking because I believe that no dev should work without any version control system.
-
Codazed15157y@creator So basically what would happen is I would pull changes to the web server from the git repository. Some files would update, and other files such as images and stylesheets would keep their cached versions. This would break my websites with major, undesirable results. What I didn't realize was my websites were being cached by Cloudflare. I will start using git again to vc these sites, but I will probably be purging the Cloudflare cache every time I pull an update.
-
creator22067y@BaconatorNoVeg I don't think this is something related to Git. You may need a build system or CI/CD pipelines probably, but that would be an overkill for small projects.
Better try gulp or even better, webpack.
But always use Git (unless you're into mercurial)
Related Rants
-
samuelpearson14Year 2013 - Trying this thing called Bitcoin - Setup wallet in spare USB drive - Buy 0.5 BTC (couldn’t affo...
-
JMoodyFWD8I think I've shown in my past rants and comments that I'm pretty experienced. Looking back though, I was reall...
-
Brolls29Story time. Not sure it counts as data loss, more temporary corruption (and in my own brain). > be me. > b...
I once accidentally deleted the live versions of my websites instead of the development versions (which I wanted to delete because I was going to start over from the live versions.) After several hours of digging through backup folders, I finally found the latest backup files, which were a few months old.
It took me a few hours to get the backed up versions to the same version they were when they were live. In all this, I have learned to keep the live and development versions of my sites in completely different locations.
rant
wk98