Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
keycloak-proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
keycloak-proxy
Commits
19932df5
Commit
19932df5
authored
9 years ago
by
Rohith
Browse files
Options
Downloads
Plain Diff
Merge pull request #31 from gambol99/godeps
- updating the godeps to work for no-cache response
parents
8b868cea
362f9e3a
Branches
Branches containing commit
Tags
v1.0.0-rc4
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Godeps/Godeps.json
+5
-5
5 additions, 5 deletions
Godeps/Godeps.json
Godeps/_workspace/src/github.com/gambol99/go-oidc/http/http.go
+1
-1
1 addition, 1 deletion
...s/_workspace/src/github.com/gambol99/go-oidc/http/http.go
with
6 additions
and
6 deletions
Godeps/Godeps.json
+
5
−
5
View file @
19932df5
...
...
@@ -39,23 +39,23 @@
},
{
"ImportPath"
:
"github.com/gambol99/go-oidc/http"
,
"Rev"
:
"
868d837be69522f73b789fe1db4c46f15e1fc05
a"
"Rev"
:
"
1065ae3e00802992e6007decd79278ad714fd94
a"
},
{
"ImportPath"
:
"github.com/gambol99/go-oidc/jose"
,
"Rev"
:
"
868d837be69522f73b789fe1db4c46f15e1fc05
a"
"Rev"
:
"
1065ae3e00802992e6007decd79278ad714fd94
a"
},
{
"ImportPath"
:
"github.com/gambol99/go-oidc/key"
,
"Rev"
:
"
868d837be69522f73b789fe1db4c46f15e1fc05
a"
"Rev"
:
"
1065ae3e00802992e6007decd79278ad714fd94
a"
},
{
"ImportPath"
:
"github.com/gambol99/go-oidc/oauth2"
,
"Rev"
:
"
868d837be69522f73b789fe1db4c46f15e1fc05
a"
"Rev"
:
"
1065ae3e00802992e6007decd79278ad714fd94
a"
},
{
"ImportPath"
:
"github.com/gambol99/go-oidc/oidc"
,
"Rev"
:
"
868d837be69522f73b789fe1db4c46f15e1fc05
a"
"Rev"
:
"
1065ae3e00802992e6007decd79278ad714fd94
a"
},
{
"ImportPath"
:
"github.com/gin-gonic/gin"
,
...
...
This diff is collapsed.
Click to expand it.
Godeps/_workspace/src/github.com/gambol99/go-oidc/http/http.go
+
1
−
1
View file @
19932df5
...
...
@@ -118,7 +118,7 @@ func expires(date, expires string) (time.Duration, bool, error) {
// Cacheable checks for cache-control header in the keys response and grabs the expiration
func
Cacheable
(
hdr
http
.
Header
)
(
time
.
Duration
,
bool
,
error
)
{
cacheHeader
:=
hdr
.
Get
(
"Cache-Control"
)
if
cacheHeader
==
""
{
if
cacheHeader
==
""
||
cacheHeader
==
"no-cache"
{
return
time
.
Duration
(
2
)
*
time
.
Hour
,
true
,
nil
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment