code: public void setRedirect(String target, boolean permanent) {
  
          if (m_completed || (target == null)) {
              return;
          }
          m_redirectTarget = target;
          m_redirectPermanent = permanent;
          m_byteSize = 512 + CmsMemoryMonitor.getMemorySize(target);
          // If we have a redirect we don't need any other output or headers
          m_elements = null;
          m_headers = null;
      }
docs: Set a redirect target for this cache entry.<p>
  
  <b>Important:</b>
  When a redirect target is set, all saved data is thrown away,
  and new data will not be saved in the cache entry.
  This is so since with a redirect nothing will be displayed
  in the browser anyway, so there is no point in saving the data.<p>
  
  @param target The redirect target (must be a valid URL).
  @param permanent true if this is a permanent redirect