Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bjpirt
· 9y ago · 0 comments
Or even simpler you can use S3 redirects to send all of your old URLs to their new location on the same host. I'm currently doing this from both an old domain to a new domain and within the same domain and "It Just Works" (tm)
Comments
[–]
tapirl
9y ago
app engine static files are dispatched by google cdn network for free. CloudFront is not free.
[–]
tyingq
9y ago
I think the OP is subverting the CDN functionality since the static assets are flowing through the golang code.
[–]
tapirl
9y ago
not flowing through, it is redirecting. The static files are really served by google cdn.
[–]
tyingq
9y ago
I don't think so. See his code:
http.ServeFile(w, r, "static/"+r.URL.Path)
[–]
ngrilly
9y ago
I think you're right.