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

CloudFront-Is-Desktop-Viewer always set true, even if I use mobile #2800

Closed
4 tasks done
xiaoxiaosaohuo opened this issue Jun 10, 2022 · 4 comments
Closed
4 tasks done
Labels
archived This issue has been locked. feature-request New feature or request hosting

Comments

@xiaoxiaosaohuo
Copy link

Before opening, please confirm:

App Id

No response

Region

No response

Amplify Hosting feature

Custom headers

Describe the bug

I use Nextjs SSR, I want to get the user agent in getServerSideProps, however, can not get it, I found there some headers like : CloudFront-Is-Desktop-Viewer, it's always set true, even if I use a mobile device.

Expected behavior

can detect real device type

Reproduction steps

  1. using getServerSideProps
  2. print the header
  3. deploy it

Build Settings

No response

Additional information

No response

@ghost
Copy link

ghost commented Jun 27, 2022

Hi @xiaoxiaosaohuo 👋🏽 thank you for raising this. We have added it to our product backlog for prioritization.

@ghost ghost added bug Something isn't working ssr Server Side Rendering feature labels Jun 27, 2022
@Jay2113 Jay2113 added feature-request and removed bug Something isn't working labels Jul 13, 2022
@ghost ghost added feature-request New feature or request and removed feature-request labels Oct 5, 2022
@swaminator swaminator added hosting and removed ssr Server Side Rendering feature labels Nov 15, 2022
@mauerbac
Copy link
Member

This feature has just been supported with our latest launch! Closing.

Check out the details here: https://aws.amazon.com/blogs/mobile/cdn-caching-improvements-for-better-app-performance-with-aws-amplify-hosting/

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Aug 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. feature-request New feature or request hosting
Development

No branches or pull requests

4 participants