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

Allow X-Robots-Tag header in images/files middleware #6043

Merged
merged 2 commits into from
May 23, 2024
Merged

Conversation

sneridagh
Copy link
Member

@sneridagh sneridagh commented May 22, 2024


📚 Documentation preview 📚: https://volto--6043.org.readthedocs.build/

@sneridagh sneridagh requested a review from davisagli May 22, 2024 12:23
Copy link

netlify bot commented May 22, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit 2d6e4d5
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/664de3d7ac4d630008990f77

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

@sneridagh Okay, but this isn't all we need. We want to pass X-Robots-Tag through when downloading the image data via the middleware, yes, but we also want to include it in the Volto SSR response for an image view.

(Maybe it's easier to add the robots meta tag, using react-helmet?)

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

@sneridagh reminded me the meta tag is already added in ContentMetadataTags.jsx. So this looks good to me.

@sneridagh sneridagh merged commit b1797b4 into main May 23, 2024
70 checks passed
@sneridagh sneridagh deleted the allowX-Robots-Tag branch May 23, 2024 08:59
sneridagh added a commit that referenced this pull request May 30, 2024
* main: (60 commits)
  Object browser icon view v2 (#6054)
  Refactor TextWidget (#6020)
  [client] Remove the custom runner with bare vitest config (#6056)
  [client] Fix login mutation (#6053)
  Fix test script in monorepo root (#6051)
  Fix block chooser search is not focusable when clicked on add button (#5867)
  [@plone/types] BlockExtension as Interface types (#6049)
  Fixed querystring search query type (#6034)
  Id widget refactor (#6027)
  Release 18.0.0-alpha.32
  Release @plone/providers 1.0.0-alpha.1
  Release @plone/components 2.0.0-alpha.9
  Release @plone/client 1.0.0-alpha.15
  Release @plone/types 1.0.0-alpha.13
  Fix @plone/client deps (#6045)
  Allow X-Robots-Tag header in images/files middleware (#6043)
  Fixed showRestricted not applying when rendering a custom BlocksForm (#6026)
  change relative import to alias import (#6041)
  Build documentation and Storybook only when their files change (#6037)
  Use pnpm corepack instead of installing it in CI (#6038)
  ...
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