Skip to content

Cache data based on request type #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fireant456
Copy link

This fixes a bug where if you are utilize the caching plugin and attempt to request a specific renderType, subsequent requests for that URL with a different renderType will result in the binary data of the previous request being returned with the requested data type headers of the new request.

For example, this bug's behavior currently:

  1. request a page with renderType=png, prerender returns and caches a png of the URL
  2. request the same page with renderType=html, prerender returns png binary data with header data type of html

This PR resolves the above behavior by saving the renderType with the cached data.

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