Skip to content

Commit

Permalink
only cache purge for https urls
Browse files Browse the repository at this point in the history
  • Loading branch information
englercj committed Sep 17, 2018
1 parent 875b008 commit 697e082
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions build/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,10 @@ function deployClient()
function (next)
{
cf.purgeCacheForUrls(console, [
'https://pixiplayground.com/',
'https://www.pixiplayground.com/',
'https://pixiplayground.com/index.html',
'https://www.pixiplayground.com/index.html',
'http://pixiplayground.com/index.html',
'http://www.pixiplayground.com/index.html',

'http://pixiplayground.com/results.html',
'http://www.pixiplayground.com/results.html',
'https://pixiplayground.com/results.html',
'https://www.pixiplayground.com/results.html',
])
Expand Down
2 changes: 0 additions & 2 deletions server/src/routes/playgrounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ export function setupRoutes(app: restify.Server)
purgeCacheForUrls(req.log, [
`https://pixiplayground.com/api/playground/${slug}`,
`https://www.pixiplayground.com/api/playground/${slug}`,
`http://pixiplayground.com/api/playground/${slug}`,
`http://www.pixiplayground.com/api/playground/${slug}`,
]);
res.json(CODES.OK, value);
next();
Expand Down
2 changes: 0 additions & 2 deletions server/src/routes/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ export function setupRoutes(app: restify.Server)
purgeCacheForUrls(req.log, [
`https://pixiplayground.com/api/tag/${id}`,
`https://www.pixiplayground.com/api/tag/${id}`,
`http://pixiplayground.com/api/tag/${id}`,
`http://www.pixiplayground.com/api/tag/${id}`,
]);
res.json(CODES.OK, value);
}
Expand Down

0 comments on commit 697e082

Please sign in to comment.