Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9523

Even during the development mode (hudson-dev:run), static resources should be served from static/.../ URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      Currently, during the development mode, images and scripts are served directly by Jetty, which uses the file timestamp as the Last-Modified HTTP header and set the epoch time as the Expires header. This makes browsers come back later with 'If-Modified-Since", and Jetty checks that agsinst the local time stamp and returns "304 Not Modified".

      When one goes between Jenkins branches, this can end up polluting cache — say you go back to a branch that contains the old version of a file, then your local cache from the newer version of Jenkins will win and you don't get the proper version of the file until you flush the cache.

      The release versions don't have this problem as files are served under special /static/HASH/ URL. We should do the same with the development version.

            Unassigned Unassigned
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: