Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
-2
rated 0 times [  4] [ 6]  / answers: 1 / hits: 42265  / 7 Years ago, thu, april 20, 2017, 12:00:00

I'm developing a website. But it caches user name and password in cache block which can be accessed using hacking software like winhex. I want to clear cache



$(.object-position).livequery(change, function() {
$(#objects-list input).attr('disabled', true);
var action = $(this).attr('name');
var position = $(this).attr('value');
var id = $(this).attr(id);
var model = id.split(-)[0];
var object_id = id.split(-)[1];

$(#loader).show();
$(#loader).fadeIn(200);

$.ajax({
type: POST,
async: true,
url: /manage/update_position/,
data: action= + action + &model= + model + &object_id= + object_id + &position= + position,
dataType: json,
success: function(data){
$(#loader).fadeOut(fast, function () {
$(#loader).hide();
});
$(objects-list).html(data[html]);
$(#message).show();
$(#message).fadeIn(400).html('<span>'+data[message]+'</span>');
setTimeout(function(){
$(#message).fadeOut(slow, function () {
$(#message).hide();
});
}, 1500);
}
});
$(#objects-list input).attr(disabled, false);
return false;
});

More From » jquery

 Answers
5

This meta code should work with most browsers for web content. However, for resource files (javascript, images, css) your mileage may vary. Most cache busting strategies involve changing the name of your resource files (perhaps dynamically) or using Apache rewrite rules to pretend that the names are changed. This google search should put you on the right track.(cache busting strategy for js)



<meta http-equiv=cache-control content=no-cache />
<meta http-equiv=Pragma content=no-cache />
<meta http-equiv=Expires content=-1 />

[#58080] Tuesday, April 18, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mira

Total Points: 460
Total Questions: 108
Total Answers: 99

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
mira questions
;