Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Quality Assurance
    • Labels:
    • Rice Team:
      QA

      Description

      Below is the script I use to set the no caching headers.

      http://code.google.com/p/cache-filter/source/browse/trunk/src/main/java/com/samaxes/filter/NoCacheFilter.java
      http://code.google.com/p/cache-filter/source/browse/trunk/src/main/java/com/samaxes/filter/util/HTTPCacheHeader.java

      devNoCacheFilter.sh
      mkdir -p core/impl/src/main/java/com/samaxes/filter/util
      cp ../NoCacheFilter.java core/impl/src/main/java/com/samaxes/filter/
      cp ../HTTPCacheHeader.java core/impl/src/main/java/com/samaxes/filter/util/
      
      if [ -f web/src/main/webapp/WEB-INF/web.xml.orig ]
      then
          echo web/src/main/webapp/WEB-INF/web.xml.orig already exists, skipping
      else
          echo "backing up web/src/main/webapp/WEB-INF/web.xml to web/src/main/webapp/WEB-INF/web.xml.orig"
          mv web/src/main/webapp/WEB-INF/web.xml  web/src/main/webapp/WEB-INF/web.xml.orig
          echo "updating web/src/main/webapp/WEB-INF/web.xml"
          sed '1,/<filter-mapping>/s/<filter-mapping>/<filter>\
      	<filter-name>noCache<\/filter-name>\
      	<filter-class>com.samaxes.filter.NoCacheFilter<\/filter-class>\
      <\/filter>\
      <filter-mapping>\
        <filter-name>noCache<\/filter-name>\
        <url-pattern>\/*<\/url-pattern>\
      <\/filter-mapping>\
      <filter-mapping>/' web/src/main/webapp/WEB-INF/web.xml.orig > web/src/main/webapp/WEB-INF/web.xml
      fi
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              eghm-kuali-m Erik Meade
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: