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

[Improvement] SEO optimization and caching #292

Open
jpawlowski opened this issue May 4, 2021 · 2 comments
Open

[Improvement] SEO optimization and caching #292

jpawlowski opened this issue May 4, 2021 · 2 comments

Comments

@jpawlowski
Copy link

jpawlowski commented May 4, 2021

Hey there!

A few comments what I discovered during my testing today:

  1. Using HTTP/1.1 301 Moved Permanently to redirect content instead of HTTP/1.1 302 Found would be a better choice. Search engines will honor 301 better than 302 (read here for example). This will make Google happier.

  2. Cache control could be improved to avoid reverse proxies will behave uncontrolled and absorb requests that won't end up in the statistics. This would indeed be a requirement to force browser to not cache 301 responses as they would usually do in comparison to 302.

To achieve this, these response headers can easily be added to the Azure Function like this:

image

I could provide a patch for these lines of code, if desired.

┆Issue is synchronized with this Trello card by Unito

@FBoucher
Copy link
Collaborator

The Azure Function v4 don't have proxies anymore. The Doc of AzUrlShortener currently suggest using Cloudflare rules. However, we could update the doc for 302...

@Ishpreet01
Copy link

Hi, Can you assign this issue to me? I would like to work on this.

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

No branches or pull requests

3 participants