How solve 304 response - not modified?
I am running the following script on the client-side and the script is failing to update, when there is change in the database. I debugged the script using DevTools and discovered my Jquery scripts are responding back as "304 not modified". Does this issue, indicate why the client-side content is failing to update.
Note: If you require server code for further reference, please do let me know.
if so, how can I resolve this issue. Please advice further. Many thanks.
- <script src="../Scripts/jquery-1.6.4.js"></script>
- <script src="../Scripts/jquery-1.6.4.min.js"></script>
- <script src="../Scripts/jquery.signalR-2.1.2.min.js"></script>
- <script src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>
- <script type="text/javascript">
- $(function () {
- // Declare a proxy to reference the hub.
- var notifications = $.connection.NotificationHub; // Create a function that the hub can call to broadcast messages.
- notifications.client.recieveNotification = function (role, descrip) {
- // Add the message to the page. $('#spanNewMessages').text(role);
- $('#spanNewCircles').text(descrip);
- };
- // Start the connection.
- $.connection.hub.start().done(function () {
- notifications.server.sendNotifications(); alert("Notifications have been sent.");
- }).fail(function (e) {
- alert(e);
- });
- //$.connection.hub.start();
- });
- </script>
- <h1>New Notifications</h1>
- <div>
- <br /> <b>New <span id="spanNewMessages"></span> = role.</b>
- <br /> <b>New <span id="spanNewCircles"></span> = descrip.</b>
- <br />
- </div>