Results 1 to 8 of 8

Thread: Could be a caching problem.

  1. #1
    Join Date
    May 2011
    Beans
    7

    Could be a caching problem.

    I am new to Ubuntu and finding it all just as I expected - wonderful.

    However, I have a problem.

    I am updating files on a web server and doing some experiments with CSS. Nothing too extra-ordinary. when I edit a file on the server and then examine the effect in a browser (IE, Firefox or Chrome) the change is not visible in the CSS unless I rename the file and then update the links.

    I am sure that this is something silly but I cannot find a solution.

    I apologise for saying this but it does not happen in W7

    Thank you for any help

    Tony D

  2. #2
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,744

    Re: Could be a caching problem.

    Quote Originally Posted by MountainMan39 View Post
    I am new to Ubuntu and finding it all just as I expected - wonderful.

    However, I have a problem.

    I am updating files on a web server and doing some experiments with CSS. Nothing too extra-ordinary. when I edit a file on the server and then examine the effect in a browser (IE, Firefox or Chrome) the change is not visible in the CSS unless I rename the file and then update the links.

    I am sure that this is something silly but I cannot find a solution.

    I apologise for saying this but it does not happen in W7

    Thank you for any help

    Tony D
    Are you pressinf ctrl+f5 in your browser to refresh the cache ?

    also you shouldnt really edit remotely, edit locally then upload to remote, and also have a back of up your existing site before changes
    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  3. #3
    Join Date
    Mar 2010
    Location
    South Africa
    Beans
    341
    Distro
    Ubuntu

    Re: Could be a caching problem.

    What method are you using to edit remotely?
    Registered Linux user: #543082
    Registered Ubuntu user: #34219
    http://dvisagie.com/


  4. #4
    Join Date
    May 2011
    Beans
    7

    Re: Could be a caching problem.

    Thank you.

    I agree I should not be editing remotely. I will post again as to why I am doing that. It is to do with my ignorance of Ubuntu.

    I have used Ctrl/f5 and inbuilt browser techniques to flush the cache but to no avail. There is also an application cache flush mechanism which I use. Joomla / JA Template/ JAT3 Clean Cache

    The editing is done in cPanel using the file manager and Code Editor.

    Thank you for your help.

  5. #5
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,744

    Re: Could be a caching problem.

    Quote Originally Posted by MountainMan39 View Post
    Thank you.

    I agree I should not be editing remotely. I will post again as to why I am doing that. It is to do with my ignorance of Ubuntu.

    I have used Ctrl/f5 and inbuilt browser techniques to flush the cache but to no avail. There is also an application cache flush mechanism which I use. Joomla / JA Template/ JAT3 Clean Cache

    The editing is done in cPanel using the file manager and Code Editor.

    Thank you for your help.

    Editing remote or locally is nothing to do with Ubuntu, it is just good practice thats all.

    So what happens when you make the changes locally then do a global PUT to your website ?

    Are you using FTP client ? or built in app method for updating ?

    I havent done anything web design related for a while but i used to use dreamweaver in a virtual machine. I always have a backup opf my site locally and a back up of that. I make changes locally then i delete the remote rather than sync to reduce conflicts the upload the local. Unless of course the site is huge in which case files and dependants that have changed only.
    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  6. #6
    Join Date
    May 2011
    Beans
    7

    Re: Could be a caching problem.

    I agree local or remote does not affect Ubuntu.

    If I use a local host for some of the CSS experiments I get different results from using my remote host. So I am using my remote host to do the work and, for that, the cycle edit, upload, test is slower than the similar cycle on the host.

    When I upload I use either the file upload from cPanel or the Filezilla FTP. No difference either way.

    Each experimental site is only 20 or so files big so it is quite easy to sync each time.

    When working in Windows I used to use PSP as editor with local and remote file access and the ability to control what went where. For Ubuntu I have problems identifying something similar. The description made Aptana sound good but I failed to install it. Not clear why - everything seems to go OK but it is not installed. The forums suggest it may be hard work. And I tried others but they did not seem to fit the bill either. Eclipse is a bit on the big side in my view.

    So I find myself in a bit of a hole.

    Thanks for your help

    TD

  7. #7
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Could be a caching problem.

    What if you use something that ISN'T a browser (or is a fresh browser you haven't tried before) to retrieve the CSS file that has the change?

    Code:
    wget http://www.mysite.com/stylesheet.css
    less stylesheet.css
    If it still shows the old contents of the file, then you'll be able to tell if the web server is caching the file. If it's showing the new contents, and your web browsers are showing the old contents, then it's the browsers that are keeping the file cached.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  8. #8
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Could be a caching problem.

    You could also try some developer extension (like the Web Developer Toolbar) that allows you to disable cache in the browser. Great feature for testing all kinds of things.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •