I made an bootstrap template just html css and javascript. So when i uploaded the template and into my server it worked fine and when i changed some of the elements including text,images,css components,those changes did not reflected into my browser. My question is what i have to do to my template so that any changes made reflect to it on the go. Note: Do not tell me to clear cache and cookies because if this thing happens to other person i can not ask them to clear it all the time i make changes to my template.
Did the changes eventually reflect the changes you made? Otherwise maybe you are editing the wrong files. Anyways, to help with the caching issue you could add a version to the end of the url of stylesheets and whatnot like style.css?ver=1.0 and update the version every time you make changes.
yes you are right,its related to cache. Let give you an example. I uploaded the template I visited the site I made some changes in html and css I revisited but changes are not shown.
Could be that you have some sort of server cache or CDN that is causing the delay. Have you checked with your host?
but if i use wordpress the posts displays instantly. And is there any solution to this static files delivery via cdn
Posts are different from images and stylesheets. It also depends on what your CDN stores. Some may make a complete static copy and if they don't have a file that matches, for example, your new post then it will simply load from your server instead of the CDN.
Thanks for letting me know this. So how can i make my static pages change appear. Do i need to configure my cloudflare cdn account
Perhaps you can work without the CDN while developing the site and enable CDN when the client is happy. I don't know if cloudflare has any settings to help you, I mean if you disable caching then you might as well disable the CDN as I stated but maybe they have a reload button or something.
I have am usually able to keep load times fairly low by optimizing the website, I feel like a CDN is the last solution when you have a site that won't change much, perhaps just adding new content. Do you need a CDN? If your clients are US based maybe you could get better or the same results with US hosting? Some of my sites are for Sweden only and therefore I have them on Swedish servers.
Basically, unless you have huge sites with thousands of users, users from all over the world (and crappy bandwidth on your current hosting solution), or you're serving massive amounts of data (images, video or similar), then you don't usually need CDN. Mostly, CDNs used for other sites than what I mentioned are used to leverage crappy coding practices and way too many MBs of code being delivered to the user, hence slow loading.