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

Add optional cache headers for components (#325) #326

Merged

Commits on Dec 1, 2016

  1. Add optional cache headers for components (opencomponents#325)

    * Added a function setHeader(name, value) to the context object that we pass to the component data function.
    
    * Subsequently these headers (if added) will be set in the response data in the returned component JSON as well as response headers (component.js)
    
    * Added a mock component (response-headers-component) and a test to cover the new functionality
    i-b-dimitrov committed Dec 1, 2016
    Configuration menu
    Copy the full SHA
    01fd4dc View commit details
    Browse the repository at this point in the history