Saha Posted December 14, 2017 Posted December 14, 2017 For Better Understanding Checkout Below Eg:- Case 1 https://abc.com/img/abc.png Gives me the proper Latest Image Case 2 https://www.abc.com/img/abc.png Gives me the Old Image or image not found Above also applies for css ,js etc. In Case 2 i am able to get the latest image after some time interval.
0 wakabayashi Posted December 14, 2017 Posted December 14, 2017 Hey. For me both links are not working...
0 Tomik Posted December 14, 2017 Posted December 14, 2017 because he changed the website to abc.com :laughing:
0 MockoB Posted December 14, 2017 Posted December 14, 2017 Is it possible to open both www and no www version of the same domain? Shouldn't be there preferred URL to open and redirects?
0 wakabayashi Posted December 14, 2017 Posted December 14, 2017 @tomik said in Different Resource Served with and Without www in url: because he changed the website to abc.com :laughing: :D :D :D I shouldn't answer in the morning ;)
0 lesley Posted December 14, 2017 Posted December 14, 2017 Can you give an example of this happening? Likely it means something in your template is done wrong.
0 Saha Posted December 15, 2017 Author Posted December 15, 2017 @lesley Already Provided an example . The resources like css , js, images are latest when they are fetched without www ie https://example.com/css/example.css https://example.com/js/example.js https://example.com/image/example.jpeg And when Fetched with www older version of the file is fetched ie https://www.example.com/css/example.css https://www.example.com/js/example.js https://www.example.com/image/example.jpeg I guess something wrong with apache server configuration.
0 lesley Posted December 15, 2017 Posted December 15, 2017 Without seeing the site it is impossible to tell. The core is not doing it, the only way I can see it happening is if you have resources statically programmed in.
0 Saha Posted January 12, 2018 Author Posted January 12, 2018 [SOLVED] It was Cache Control Issue . Cache Control was with a max age of a week. Purging with cloudflare fixed the issue.
Question
Saha
For Better Understanding Checkout Below Eg:-
Case 1
https://abc.com/img/abc.png Gives me the proper Latest Image
Case 2
https://www.abc.com/img/abc.png Gives me the Old Image or image not found
Above also applies for css ,js etc.
In Case 2 i am able to get the latest image after some time interval.
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now