Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added caching to wilson.client.js and wilson.client.min.js endpoints. #17

Merged
merged 1 commit into from
May 21, 2015

Conversation

hunternovak
Copy link
Contributor

No description provided.

@@ -118,9 +118,19 @@ module.exports = function(app, appWilsonConfigJson, dependencies) {

//WILSON CLIENT
router.get('/:version?/client.wilson.js', function(req, res) {
//Set max age headers based on config for wilson (NOTE: maxAgeMs is millis, so we divide to specify seconds)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to check if the req.params.version is set before setting the cache control. Cache should probably be max-age=0 for the case no version is provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I'll open a ticket to add this, but will merge this in for the time being.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#18 Ticket create for req.params.version addition

hunternovak added a commit that referenced this pull request May 21, 2015
Added caching to wilson.client.js and wilson.client.min.js endpoints.
@hunternovak hunternovak merged commit 514f35b into develop May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants