Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How can i mention far future expiration date for google ad services, google analytics...
These are some things shown in gtmetrix site for yslow.
i am using nginx server
http://www.googleadservices.com/pagead/conversion.js
http://www.google-analytics.com/analytics.js
http://storage.googleapis.com/code.snapengage.com/js/cb502944-bd87-448a-b7e3-34353b0136c7.js
https://commondatastorage.googleapis.com/code.snapengage.com/btn/livechat_right_en.png
how can i add future expiration date for these links.
Assuming you are talking about the Cache expiration date, the answer as Alexey Ten is "you can't".
Those resources are not controlled by you, nor on your servers. They are loaded by the browsers from external servers, therefore you have no control over them. The expiration header is set by the server that serves the asset.
In some cases you can proxy the resource (aka put a custom layer between the resource and the client), so that you can configure the cache via the proxy. But I'm not sure in this case it's a recommendable option.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I'm new in BotFramework and maybe you can help me.
I need to create a bot with LUIS and vinculate it to a MS Teams channel. As far I see, there are not any problem in making this approach directly on Azure, but because of the elevated price I'm looking for the possibily to make it onPrem due to costs reduction.
I have seen that deploy a BOT with a Docker container OnPrem is possible. There are any restriction I should know before start?
Microsoft allow the pages which are publicly available. You can able to access the Public HTML pages. Also You can create and upload a bot to teams. Could you please check this docs.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I have a form. And I want to make the page resilient to network lashes.
Outages.
So if you press submit but you have no network, it should be cached somewhere and sent later.
How can I do that? Can Service Work help me with it?
You can deffer failed requests using service workers, yes.
I recommend to use Workbox and more specificly the BackgroundSync Plugin to deffer failed requests when the network is back.
To do this, you may be familiar with the new fetch API
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
What is the refsrc parameter in URLs for? There is a URL that is being circulated with our domain, but not sure if this is a safe thing.
Thank you
It will depend on the application/website receiving request with that parameter. I've seen that parameter name used to embed the current page for the link. (I believe I saw that on facebook links?)
In that way when the link is followed, the next app/web site is able to know where the link is coming from if the information is not in the HTTP headers due to redirections or similar situations.
I don't believe it's a standard though.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an app which allows users to redeem voucher codes, however I want to limit it so they can only claim one every 30 minutes.
So I somehow need to store the time they last redeemed a voucher, and if they try to redeem another, the app would check the last time and only give them a new voucher if the last one was over half an hour ago.
Would I store data in user prefs or is there a better way?
Storing a timestamp of when the last voucher was redeemed in NSUserDefaults is probably fine for a simple solution.
But how secure do you need this to be? As a general rule, and especially if this needs to be strictly enforced for financial reasons, never trust the client. Meaning that you should have a server to verify the codes, and enforce usage restrictions.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 months ago.
Improve this question
If you were building a service like Instagram, when you need
-a web app
-android app
-ios app
How do you make the architecture for this to give enough flexibility to add another mobile system and keep the code as DRY possible? Do you have books to recommend about it?
In order to allow the server to support a wide range of client plattforms, I would make all client apps communicate with the server with the same protocol, so that the plattform the client runs on doesn't matter for the server. In an ideal case this would allow to add a new plattform without changing anything on the server-side
XmlHttpRequest is a good common denominator.