-
Notifications
You must be signed in to change notification settings - Fork 0
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
add cache-control header... maybe #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not familiar with PHP, I assume this alter the Cache Control behaviour of the PHP server?
Do you want this line to be part of the HTML when the webpage is loaded? In CRA React app src/index.html
is ignored, the actual HTML being loaded is public/index.html
. So you will need to add this line to public/index.html
, and it will become part of the built website.
For example the analytic Javascript is added this way:
Line 46 in 11fdfb7
<script type="text/javascript" src="/zxtm/piwik2.js"></script> |
ah cool, thanks Harry. I'll admit I had no idea what to do, just followed some SO thread. I'll put them in public instead. The issue is we still won't know if this will work, nor can we really test it working.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I got you. The worst case scenario is just doing nothing, so I think we shall proceed anyway. As stated in the linked thread, it seems to be a Chrome-specific issue? Because I use Firefox personally and never notice this behaviour. If you are happy, I will merge the PR, release, and deploy. |
yes please! |
No description provided.