Alpha Video Training
Results 1 to 8 of 8

Thread: CSS caching problem

  1. #1
    Member
    Real Name
    Sparticuz
    Join Date
    Jun 2009
    Location
    Clearwater, FL
    Posts
    512

    Default CSS caching problem

    I'm have a weird problem that I can only blame on the WAS. I've edited my css file in the css folder on my computer, uploaded the changes to the WAS, and viewed the changed web page on the server, but the page does not show the changes I've made to the page. I've checked the css file on the server and it is the correct file with the appropriate changes however the new css file is being marked as 304 Not Modified by the server (using firebug's net panel). I've cleared by cache and used two different browsers.

    any ideas?

    EDIT: i have rebooted the WAS as well

  2. #2
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,696

    Default Re: CSS caching problem

    Using the default server configuration, gzip and gzip caching are enabled. Gzip caching creates a cached gzipped copy of your static resources within your webroot. When you stop the server normally, it should clear these cached files. However, if the server is not properly shut down, the files may not be cleared. Or you may wish to update the cache without having to restart the server.

    In either of these situations, you can manually remove the cached gzip file. On the next request for that file, a new cache version will be created.

    The cache file will be created in the same folder as your normal file. It will be named the same, with the added extension .gzcache. So if you have updated MyStyle.css, simply delete MyStyle.css.gzcache.

    It is also possible to disable gzip caching in the Application Server settings. This can be found on the Performance tab.

    Lenny Forziati
    Vice President, Internet Products and Technical Services
    Alpha Software Corporation

  3. #3
    Volunteer Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,842

    Default Re: CSS caching problem

    I disabled the gzip settings on my V10 localhost server long ago. I also set IE and Firefox to NOT cache anything while I am working locally.

    When I went to confirm, I see we have a new Advanced Tab with a bunch of nifty options that invite exploration, including the new IP binding setting.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  4. #4
    "Certified" Alphaholic mmaisterrena's Avatar
    Real Name
    Mauricio Maisterrena
    Join Date
    Nov 2006
    Location
    Torreon, Mexico
    Posts
    1,435

    Default Re: CSS caching problem

    I just recently had a problem with gzcache files being generated for every xml file. My solution was to include in the code for generating the xml files a routine to check if xml.gzcache existed and if they do, delete the files automatically.
    Last edited by mmaisterrena; 10-26-2009 at 06:50 PM.
    Cheers
    Mauricio


  5. #5
    Member
    Real Name
    Sparticuz
    Join Date
    Jun 2009
    Location
    Clearwater, FL
    Posts
    512

    Default Re: CSS caching problem

    I've disabled gzip and gzip caching and the problem is fixed. Shouldn't the server have a check to see if the file has changed since it was last gziped?

  6. #6
    "Certified" Alphaholic mmaisterrena's Avatar
    Real Name
    Mauricio Maisterrena
    Join Date
    Nov 2006
    Location
    Torreon, Mexico
    Posts
    1,435

    Default Re: CSS caching problem

    I think it should, because if not gzip is rather obtrusive.
    Cheers
    Mauricio


  7. #7
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,696

    Default Re: CSS caching problem

    New in the next patch is a more intelligent cache that monitors for file changes and automatically removes the stale .gzcache files for you. This will eliminate the current need for you to manually delete the .gzcache files.

    Lenny Forziati
    Vice President, Internet Products and Technical Services
    Alpha Software Corporation

  8. #8
    "Certified" Alphaholic NoeticCC's Avatar
    Real Name
    Andrea Gill
    Join Date
    Nov 2007
    Location
    Golcar, West Yorkshire, UK
    Posts
    2,070

    Default Re: CSS caching problem

    Quote Originally Posted by Lenny Forziati View Post
    New in the next patch is a more intelligent cache that monitors for file changes and automatically removes the stale .gzcache files for you. This will eliminate the current need for you to manually delete the .gzcache files.
    Great :)

Similar Threads

  1. Caching or speeding up SQL
    By Atta in forum Application Server Version 9 - Web/Browser Applications
    Replies: 4
    Last Post: 02-18-2009, 02:40 PM
  2. CSS problem
    By simonpscott in forum Application Server Version 9 - Web/Browser Applications
    Replies: 11
    Last Post: 12-18-2008, 12:43 AM
  3. Grid component CSS problem
    By jas in forum Application Server Version 8
    Replies: 0
    Last Post: 03-08-2007, 05:33 PM
  4. CSS problem - FieldCaptionTD
    By Steve Wood in forum Web Application Server v7
    Replies: 0
    Last Post: 02-10-2006, 05:32 PM

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
  •