You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
6since S3 responds with a 403 Forbidden when a file doesn't exist, I think step 4 above has to be duplicated for Http error code 403 as wellAndreas– Andreas2016-03-07 20:46:02 +00:00Commented Mar 7, 2016 at 20:46
-
4For me this is the only answer that results in an expected (accepted) behaviormabe.berlin– mabe.berlin2016-07-25 21:08:18 +00:00Commented Jul 25, 2016 at 21:08
-
1I would not recommend. Generally, when you update your javascript or css the versioning signature on packages will get updated. However, the clients which are already running your application will have their index.html cached already and would not get the updated index.html. Hence, will try to reference older versions of your JS and CSS (still available on their local cache/CDN). This is sub-optimal. You can try to change your CDN config to change the expires headers for index.html so that it is not cacheable.moha297– moha2972016-08-14 19:22:11 +00:00Commented Aug 14, 2016 at 19:22
-
1@moha297 One more question. Why not directly server index.html from the EC2 instance itself rather than proxying it?mrudult– mrudult2016-08-21 09:57:28 +00:00Commented Aug 21, 2016 at 9:57
-
2@moha297 can you please explain this comment: "You should never serve index.html from a CDN"? I don't see the problem with serving index.html from S3 with CloudFront.Carl G– Carl G2017-03-31 05:18:41 +00:00Commented Mar 31, 2017 at 5:18
|
Show 18 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you