Webpage does not changes on client side.

Discussion in 'Programming' started by ItsColdice, Jun 13, 2015.

  1. #1
    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.
     
    Solved! View solution.
    ItsColdice, Jun 13, 2015 IP
  2. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #2
    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.
     
    Anveto, Jun 13, 2015 IP
  3. ItsColdice

    ItsColdice Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    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.
     
    ItsColdice, Jun 13, 2015 IP
  4. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #4
    Could be that you have some sort of server cache or CDN that is causing the delay. Have you checked with your host?
     
    Anveto, Jun 13, 2015 IP
  5. ItsColdice

    ItsColdice Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #5
    i am using cloudflare cdn
     
    ItsColdice, Jun 14, 2015 IP
  6. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #6
    Then that might be your problem, it will take some time for the CDN to update files.
     
    Anveto, Jun 14, 2015 IP
  7. ItsColdice

    ItsColdice Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #7
    but if i use wordpress the posts displays instantly.

    And is there any solution to this static files delivery via cdn
     
    ItsColdice, Jun 14, 2015 IP
  8. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #8
    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.
     
    Anveto, Jun 14, 2015 IP
    Karen May Jones likes this.
  9. ItsColdice

    ItsColdice Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #9
    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
     
    ItsColdice, Jun 15, 2015 IP
  10. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #10
    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.
     
    Anveto, Jun 15, 2015 IP
  11. ItsColdice

    ItsColdice Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #11
    how
    how do you guys deal with this ?
     
    ItsColdice, Jun 15, 2015 IP
  12. #12
    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.
     
    Anveto, Jun 15, 2015 IP
  13. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #13
    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.
     
    PoPSiCLe, Jun 16, 2015 IP
    Karen May Jones likes this.
  14. ItsColdice

    ItsColdice Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #14
    Thanks
    MarkusTenghamn and
    PoPSiCLe
     
    ItsColdice, Jun 17, 2015 IP