public class ResourceDownloadUtils extends Object
| Constructor and Description |
|---|
ResourceDownloadUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String... cacheControls)
Set 'expire' headers to cache for one year.
|
static void |
addPrivateCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Sets caching headers with private cache control.
|
static void |
addPublicCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Sets caching headers with public cache control.
|
public static void addCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String... cacheControls)
public static void addPublicCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
/s/{build num}/.../_/resourceurl.public static void addPrivateCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
/sp/{build num}/.../_/resourceurl.Copyright © 2019 Atlassian. All rights reserved.