Professional Web Applications Themes

CSS local cache stale with WebDAV connection - Macromedia Contribute General Discussion

We've been successfully using Contribute 4 (Windows) against an Apache 2 WebDAV server for several months now. Roughly 20 contributors have been updating roughly 500 pages with little trouble (stale DAV locks here and there being the worst) until now. We've found that once you edit a page and the associated external style sheets are downloaded into Contribute's local cache ("sites") the stylesheets are always retrieved from cache (for edit mode) and never re-requested from the server (even if they have been updated). So, for instance, given the following XHTML snippet: <link rel="stylesheet" type="text/css" href="/styles/screen-new.css" /> <link rel="stylesheet" type="text/css" href="/styles/contribute.css" ...

  1. #1

    Default CSS local cache stale with WebDAV connection

    We've been successfully using Contribute 4 (Windows) against an Apache 2 WebDAV
    server for several months now. Roughly 20 contributors have been updating
    roughly 500 pages with little trouble (stale DAV locks here and there being the
    worst) until now.

    We've found that once you edit a page and the associated external style sheets
    are downloaded into Contribute's local cache ("sites") the stylesheets are
    always retrieved from cache (for edit mode) and never re-requested from the
    server (even if they have been updated).

    So, for instance, given the following XHTML snippet:

    <link rel="stylesheet" type="text/css" href="/styles/screen-new.css" />
    <link rel="stylesheet" type="text/css" href="/styles/contribute.css" />

    ... going into edit mode will cause both style sheets to be downloaded from
    the server. But, subsequent changes to either of these style sheets (via
    non-DW, non-Contribute editing on the server itself, in case that matters) will
    not be reflected in edit mode UNTIL the local cache (the "site" directory) is
    deleted by the end user. Browse mode is unaffected.

    One thing I noticed when troubleshooting with wireshark (f.k.a. ethereal) was
    that the GET requests for the style sheets (in edit mode) contained very few
    headers. Conspicuously missing are the Accept and User-agent headers present
    on most other requests issued by Contribute.

    Has anyone else seen something similar? Any tips on what else to look at
    before I escalate this to paid support?

    JasonWoodward Guest

  2. #2

    Default Re: CSS local cache stale with WebDAV connection

    We discovered what the problem was, so here it is for posterity.

    Say you have A.html which references X.css which includes Y.css. If Y.css is
    updated (the last modified date changes) without X.css changing (lastmodified
    WebDAV PROPFIND request unchanged from cached version) then Contribute doesn't
    bother with Y.css.

    Updating the last modified date on X.css (when Y.css is changed) causes
    Contribute to update the local copy.

    JasonWoodward Guest

Similar Threads

  1. WEBDAV connection lost
    By Jinger_M in forum Adobe Dreamweaver & Contribute
    Replies: 0
    Last Post: March 4th, 06:58 PM
  2. WEBDAV Connection Problem
    By pmayers in forum Macromedia Contribute Connection Administrtion
    Replies: 3
    Last Post: May 28th, 08:48 AM
  3. WebDAV connection and WebCT
    By Aconite in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: November 29th, 04:13 PM
  4. Wrong WebDav Connection
    By w3bal3x in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: March 15th, 08:33 PM
  5. WebDAV Connection Issue
    By mpwoodward in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: February 21st, 09:12 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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139